From edb5de94a0923652f124b9ccd3841cf96c077662 Mon Sep 17 00:00:00 2001 From: Erik Date: Mon, 6 Apr 2026 13:59:07 +0200 Subject: [PATCH] add stipend backoff timer to aphus --- af/aphus.af | 7 ++++ met/aphus.met | 113 ++++++++++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 117 insertions(+), 3 deletions(-) diff --git a/af/aphus.af b/af/aphus.af index 8bc35c0..7fcc5ab 100644 --- a/af/aphus.af +++ b/af/aphus.af @@ -127,6 +127,8 @@ STATE: {Default} ~~ { DO: DoExpr {setvar[bellaJawRunRecoverAttempts, 0]} IF: Not Expr {testvar[bellaBackoffSeconds]} DO: DoExpr {setvar[bellaBackoffSeconds, 86400]} + IF: Not Expr {testvar[stipendBackoffSeconds]} + DO: DoExpr {setvar[stipendBackoffSeconds, 86400]} IF: Not Expr {testvar[serviceCheckInterval]} DO: DoExpr {setvar[serviceCheckInterval, 43200]} IF: Not Expr {testvar[serviceClock]} @@ -231,6 +233,9 @@ STATE: {service_decide} ~~ { DoExpr {clearvar[bellaBackoffClock]} IF: All Expr {getqueststatus[`stipendtimer_0812`]==1} + Not All + Expr {testvar[stipendBackoffClock]} + Expr {stopwatchelapsedseconds[getvar[stipendBackoffClock]]