summaryrefslogtreecommitdiff
path: root/internal/task/task_test.go
diff options
context:
space:
mode:
authorPeter Stone <thepeterstone@gmail.com>2026-03-06 20:56:43 +0000
committerPeter Stone <thepeterstone@gmail.com>2026-03-06 20:56:43 +0000
commit7d4890cde802974b94db24071f63e7733c3670fd (patch)
treea19812329bda11bbc4905c7c684aec06efe5da7f /internal/task/task_test.go
parent40d9ace301654869cce46c9e23c559f944e754c0 (diff)
fix: use context.Background() for resume execution; allow CANCELLED→QUEUED restart
Two bugs: 1. SubmitResume was called with r.Context(), which is cancelled as soon as the HTTP handler returns, immediately cancelling the resume execution. Switch to context.Background() so the execution runs to completion. 2. CANCELLED→QUEUED was missing from ValidTransition, so the Restart button on cancelled tasks always returned 409. Added the transition. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'internal/task/task_test.go')
0 files changed, 0 insertions, 0 deletions