Add blocked escalation to watchdog recovery

This commit is contained in:
Eve
2026-04-24 15:12:54 +08:00
parent 73f47cfdf7
commit 65bfde9b79
2 changed files with 37 additions and 0 deletions

View File

@@ -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';
}