fix stipend backoff: split into two safe rules, avoid iif (both branches always evaluate), remove debug lines
Some checks failed
/ test (push) Failing after 19s
Some checks failed
/ test (push) Failing after 19s
This commit is contained in:
parent
f8695b2275
commit
a58f8340ae
2 changed files with 71 additions and 33 deletions
93
met/bore.met
93
met/bore.met
|
|
@ -2850,7 +2850,29 @@ service_decide
|
|||
i
|
||||
2
|
||||
i
|
||||
8
|
||||
1
|
||||
TABLE
|
||||
2
|
||||
K
|
||||
V
|
||||
n
|
||||
n
|
||||
2
|
||||
i
|
||||
26
|
||||
TABLE
|
||||
2
|
||||
k
|
||||
v
|
||||
n
|
||||
n
|
||||
1
|
||||
s
|
||||
e
|
||||
s
|
||||
getqueststatus[`stipendtimer_0812`]==1
|
||||
i
|
||||
21
|
||||
TABLE
|
||||
2
|
||||
K
|
||||
|
|
@ -2870,31 +2892,22 @@ n
|
|||
s
|
||||
e
|
||||
s
|
||||
getqueststatus[`stipendtimer_0812`]==1
|
||||
TABLE
|
||||
2
|
||||
k
|
||||
v
|
||||
n
|
||||
n
|
||||
1
|
||||
testvar[stipendBackoffClock]
|
||||
s
|
||||
e
|
||||
s
|
||||
\/a [stipend-debug] 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]]
|
||||
service_stipend
|
||||
s
|
||||
service_decide
|
||||
i
|
||||
2
|
||||
i
|
||||
1
|
||||
3
|
||||
TABLE
|
||||
2
|
||||
K
|
||||
V
|
||||
n
|
||||
n
|
||||
2
|
||||
3
|
||||
i
|
||||
26
|
||||
TABLE
|
||||
|
|
@ -2920,7 +2933,42 @@ n
|
|||
s
|
||||
e
|
||||
s
|
||||
isfalse[iif[testvar[stipendBackoffClock], stopwatchelapsedseconds[getvar[stipendBackoffClock]]<getvar[stipendBackoffSeconds], 0]]
|
||||
testvar[stipendBackoffClock]
|
||||
i
|
||||
26
|
||||
TABLE
|
||||
2
|
||||
k
|
||||
v
|
||||
n
|
||||
n
|
||||
1
|
||||
s
|
||||
e
|
||||
s
|
||||
stopwatchelapsedseconds[getvar[stipendBackoffClock]]>=getvar[stipendBackoffSeconds]
|
||||
TABLE
|
||||
2
|
||||
K
|
||||
V
|
||||
n
|
||||
n
|
||||
2
|
||||
i
|
||||
7
|
||||
TABLE
|
||||
2
|
||||
k
|
||||
v
|
||||
n
|
||||
n
|
||||
1
|
||||
s
|
||||
e
|
||||
s
|
||||
clearvar[stipendBackoffClock]
|
||||
i
|
||||
1
|
||||
s
|
||||
service_stipend
|
||||
s
|
||||
|
|
@ -3131,7 +3179,7 @@ K
|
|||
V
|
||||
n
|
||||
n
|
||||
8
|
||||
7
|
||||
i
|
||||
2
|
||||
s
|
||||
|
|
@ -3171,19 +3219,6 @@ e
|
|||
s
|
||||
stopwatchstart[getvar[stipendBackoffClock]]
|
||||
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
|
||||
TABLE
|
||||
2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue