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]}
|
DoExpr {clearvar[bellaBackoffClock]}
|
||||||
IF: All
|
IF: All
|
||||||
Expr {getqueststatus[`stipendtimer_0812`]==1}
|
Expr {getqueststatus[`stipendtimer_0812`]==1}
|
||||||
Not All
|
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]]}
|
||||||
Expr {testvar[stipendBackoffClock]}
|
IF: All
|
||||||
Expr {stopwatchelapsedseconds[getvar[stipendBackoffClock]]<getvar[stipendBackoffSeconds]}
|
Expr {getqueststatus[`stipendtimer_0812`]==1}
|
||||||
|
Expr {isfalse[iif[testvar[stipendBackoffClock], stopwatchelapsedseconds[getvar[stipendBackoffClock]]<getvar[stipendBackoffSeconds], 0]]}
|
||||||
DO: SetState {service_stipend}
|
DO: SetState {service_stipend}
|
||||||
IF: All
|
IF: All
|
||||||
Expr {getvar[disableAugmentServices]!=1}
|
Expr {getvar[disableAugmentServices]!=1}
|
||||||
|
|
@ -323,6 +324,7 @@ STATE: {service_stipend} ~~ {
|
||||||
Chat {/vt opt set enablenav true}
|
Chat {/vt opt set enablenav true}
|
||||||
DoExpr {setvar[stipendBackoffClock, stopwatchcreate[]]}
|
DoExpr {setvar[stipendBackoffClock, stopwatchcreate[]]}
|
||||||
DoExpr {stopwatchstart[getvar[stipendBackoffClock]]}
|
DoExpr {stopwatchstart[getvar[stipendBackoffClock]]}
|
||||||
|
ChatExpr {\/a [stipend-debug] clock created: exists=+testvar[stipendBackoffClock]+\, elapsed=+stopwatchelapsedseconds[getvar[stipendBackoffClock]]}
|
||||||
DoExpr {touchvar[stipendNavLoaded]}
|
DoExpr {touchvar[stipendNavLoaded]}
|
||||||
EmbedNav nav0__stipend_nav {stipend.nav}
|
EmbedNav nav0__stipend_nav {stipend.nav}
|
||||||
IF: All
|
IF: All
|
||||||
|
|
|
||||||
87
met/bore.met
87
met/bore.met
|
|
@ -11,7 +11,7 @@ n
|
||||||
n
|
n
|
||||||
n
|
n
|
||||||
n
|
n
|
||||||
225
|
226
|
||||||
i
|
i
|
||||||
1
|
1
|
||||||
i
|
i
|
||||||
|
|
@ -2850,6 +2850,43 @@ service_decide
|
||||||
i
|
i
|
||||||
2
|
2
|
||||||
i
|
i
|
||||||
|
8
|
||||||
|
TABLE
|
||||||
|
2
|
||||||
|
K
|
||||||
|
V
|
||||||
|
n
|
||||||
|
n
|
||||||
|
1
|
||||||
|
i
|
||||||
|
26
|
||||||
|
TABLE
|
||||||
|
2
|
||||||
|
k
|
||||||
|
v
|
||||||
|
n
|
||||||
|
n
|
||||||
|
1
|
||||||
|
s
|
||||||
|
e
|
||||||
|
s
|
||||||
|
getqueststatus[`stipendtimer_0812`]==1
|
||||||
|
TABLE
|
||||||
|
2
|
||||||
|
k
|
||||||
|
v
|
||||||
|
n
|
||||||
|
n
|
||||||
|
1
|
||||||
|
s
|
||||||
|
e
|
||||||
|
s
|
||||||
|
\/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]]
|
||||||
|
s
|
||||||
|
service_decide
|
||||||
|
i
|
||||||
|
2
|
||||||
|
i
|
||||||
1
|
1
|
||||||
TABLE
|
TABLE
|
||||||
2
|
2
|
||||||
|
|
@ -2872,24 +2909,6 @@ e
|
||||||
s
|
s
|
||||||
getqueststatus[`stipendtimer_0812`]==1
|
getqueststatus[`stipendtimer_0812`]==1
|
||||||
i
|
i
|
||||||
21
|
|
||||||
TABLE
|
|
||||||
2
|
|
||||||
K
|
|
||||||
V
|
|
||||||
n
|
|
||||||
n
|
|
||||||
1
|
|
||||||
i
|
|
||||||
2
|
|
||||||
TABLE
|
|
||||||
2
|
|
||||||
K
|
|
||||||
V
|
|
||||||
n
|
|
||||||
n
|
|
||||||
2
|
|
||||||
i
|
|
||||||
26
|
26
|
||||||
TABLE
|
TABLE
|
||||||
2
|
2
|
||||||
|
|
@ -2901,20 +2920,7 @@ n
|
||||||
s
|
s
|
||||||
e
|
e
|
||||||
s
|
s
|
||||||
testvar[stipendBackoffClock]
|
isfalse[iif[testvar[stipendBackoffClock], stopwatchelapsedseconds[getvar[stipendBackoffClock]]<getvar[stipendBackoffSeconds], 0]]
|
||||||
i
|
|
||||||
26
|
|
||||||
TABLE
|
|
||||||
2
|
|
||||||
k
|
|
||||||
v
|
|
||||||
n
|
|
||||||
n
|
|
||||||
1
|
|
||||||
s
|
|
||||||
e
|
|
||||||
s
|
|
||||||
stopwatchelapsedseconds[getvar[stipendBackoffClock]]<getvar[stipendBackoffSeconds]
|
|
||||||
s
|
s
|
||||||
service_stipend
|
service_stipend
|
||||||
s
|
s
|
||||||
|
|
@ -3125,7 +3131,7 @@ K
|
||||||
V
|
V
|
||||||
n
|
n
|
||||||
n
|
n
|
||||||
7
|
8
|
||||||
i
|
i
|
||||||
2
|
2
|
||||||
s
|
s
|
||||||
|
|
@ -3165,6 +3171,19 @@ e
|
||||||
s
|
s
|
||||||
stopwatchstart[getvar[stipendBackoffClock]]
|
stopwatchstart[getvar[stipendBackoffClock]]
|
||||||
i
|
i
|
||||||
|
8
|
||||||
|
TABLE
|
||||||
|
2
|
||||||
|
k
|
||||||
|
v
|
||||||
|
n
|
||||||
|
n
|
||||||
|
1
|
||||||
|
s
|
||||||
|
e
|
||||||
|
s
|
||||||
|
\/a [stipend-debug] clock created: exists=+testvar[stipendBackoffClock]+\, elapsed=+stopwatchelapsedseconds[getvar[stipendBackoffClock]]
|
||||||
|
i
|
||||||
7
|
7
|
||||||
TABLE
|
TABLE
|
||||||
2
|
2
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue