simplify stipend backoff guard to single Expr, add debug chat lines to diagnose looping
Some checks failed
/ test (push) Failing after 22s
Some checks failed
/ test (push) Failing after 22s
This commit is contained in:
parent
edb5de94a0
commit
1ac576b5ef
2 changed files with 58 additions and 37 deletions
|
|
@ -291,9 +291,10 @@ STATE: {service_decide} ~~ {
|
|||
DoExpr {clearvar[bellaBackoffClock]}
|
||||
IF: All
|
||||
Expr {getqueststatus[`stipendtimer_0812`]==1}
|
||||
Not All
|
||||
Expr {testvar[stipendBackoffClock]}
|
||||
Expr {stopwatchelapsedseconds[getvar[stipendBackoffClock]]<getvar[stipendBackoffSeconds]}
|
||||
DO: ChatExpr {\/a [stipend-debug] decide: clockExists=+testvar[stipendBackoffClock]+\, elapsed=+iif[testvar[stipendBackoffClock],stopwatchelapsedseconds[getvar[stipendBackoffClock]],`none`]+\, backoff=+getvar[stipendBackoffSeconds]+\, guard=+isfalse[iif[testvar[stipendBackoffClock],stopwatchelapsedseconds[getvar[stipendBackoffClock]]<getvar[stipendBackoffSeconds],0]]}
|
||||
IF: All
|
||||
Expr {getqueststatus[`stipendtimer_0812`]==1}
|
||||
Expr {isfalse[iif[testvar[stipendBackoffClock], stopwatchelapsedseconds[getvar[stipendBackoffClock]]<getvar[stipendBackoffSeconds], 0]]}
|
||||
DO: SetState {service_stipend}
|
||||
IF: All
|
||||
Expr {getvar[disableAugmentServices]!=1}
|
||||
|
|
@ -323,6 +324,7 @@ STATE: {service_stipend} ~~ {
|
|||
Chat {/vt opt set enablenav true}
|
||||
DoExpr {setvar[stipendBackoffClock, stopwatchcreate[]]}
|
||||
DoExpr {stopwatchstart[getvar[stipendBackoffClock]]}
|
||||
ChatExpr {\/a [stipend-debug] clock created: exists=+testvar[stipendBackoffClock]+\, elapsed=+stopwatchelapsedseconds[getvar[stipendBackoffClock]]}
|
||||
DoExpr {touchvar[stipendNavLoaded]}
|
||||
EmbedNav nav0__stipend_nav {stipend.nav}
|
||||
IF: All
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue