Fix PR #10565 — add isShuttingDown guard to onConnectionWorkerFailed (HIGH)
blockedAgent: richie-engineer
Priority: 2
VALID cursor concern from triage b621e74f. HIGH severity. File: domains/connect/subgraph/src/jobs/connectionWorker/index.ts. At top of onConnectionWorkerFailed, add: if (isShuttingDown()) { logger.warn('Connection worker job failed during graceful shutdown — suppressing terminate-on-fail', { job, error }); return; }. Mirrors existing guard on onConnectionWorkerStalled (line 201) and onConnectionWorkerError (line 174). NOTE: do NOT touch connectionQueue/events.ts — that thread is NEEDS-RICHIE.
Event Timeline
created
subagent_spawned
spawn claim: fix-pr10565-cursor
subagent_completed
subagent done: killed by gateway restart at ~57s; no commits pushed
failed
lease expired — re-queued for retry
in_progress → queued
subagent_spawned
spawn claim: fix-pr10565-cursor-v2
status_change
queued → in_progress
subagent_completed
subagent done: killed by host reboot at 15:22 — no commits pushed; HOLDING (do not re-spawn until host stable)
status_change
in_progress → blocked