fix: kill session on PHASE:escalate to prevent zombie blocking future cron runs (#571)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
578a6ec81d
commit
df848e5a60
1 changed files with 1 additions and 0 deletions
|
|
@ -464,6 +464,7 @@ _gardener_on_phase_change() {
|
||||||
reason=$(sed -n '2p' "$PHASE_FILE" 2>/dev/null | sed 's/^Reason: //' || true)
|
reason=$(sed -n '2p' "$PHASE_FILE" 2>/dev/null | sed 's/^Reason: //' || true)
|
||||||
log "escalated: ${reason}"
|
log "escalated: ${reason}"
|
||||||
matrix_send "gardener" "Gardener escalated: ${reason}" 2>/dev/null || true
|
matrix_send "gardener" "Gardener escalated: ${reason}" 2>/dev/null || true
|
||||||
|
agent_kill_session "${_MONITOR_SESSION:-$SESSION_NAME}"
|
||||||
;;
|
;;
|
||||||
PHASE:crashed)
|
PHASE:crashed)
|
||||||
if [ "${_GARDENER_CRASH_COUNT:-0}" -gt 0 ]; then
|
if [ "${_GARDENER_CRASH_COUNT:-0}" -gt 0 ]; then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue