Add blocked escalation to watchdog recovery
This commit is contained in:
@@ -245,6 +245,10 @@ function decideRecoveryAction(payload, status) {
|
||||
? attemptCountRaw
|
||||
: Number.parseInt(String(attemptCountRaw ?? '0'), 10);
|
||||
|
||||
if (!Number.isNaN(recoveryAttemptCount) && recoveryAttemptCount >= 2) {
|
||||
return 'blocked';
|
||||
}
|
||||
|
||||
if (!Number.isNaN(recoveryAttemptCount) && recoveryAttemptCount >= 1) {
|
||||
return 'respawn';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user