summaryrefslogtreecommitdiff
path: root/scripts/deploy
diff options
context:
space:
mode:
authorClaude Agent <agent@claudomator>2026-04-11 18:26:42 +0000
committerClaude Agent <agent@claudomator>2026-04-11 18:26:42 +0000
commit49cdcd70f275c858b0511a2e88ab30a48b157fa3 (patch)
tree79be4e6b12d518be0584c2a8cc03d796471a97f3 /scripts/deploy
parente94573bb84874eda7d233cafc36f3a21688c0568 (diff)
fix: tie pool submissions to server lifecycle context
Fix 1 (server.go): Replace context.Background() with s.ctx in handleAnswerQuestion, handleResumeTimedOutTask, and handleRunTask. Add a ctx field to Server (defaulting to context.Background()) and a SetContext method so the serve command can wire in the signal- cancellable lifecycle context. Fix 2 (serve.go): Call srv.SetContext(ctx) before StartHub so all pool submissions use the server's root context (already cancelled on SIGTERM/SIGINT). Pool.Shutdown and its wiring were already present. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'scripts/deploy')
0 files changed, 0 insertions, 0 deletions