Files
Vetting/internal
josh 988448664a
CI / Lint + build + test (push) Successful in 1m35s
Release / release (push) Successful in 11m53s
fix(runs): stamp completed_at on cancel/terminal SetState transitions
CancelRun goes through Runner.Transition → Runs.SetState, which was a
bare UPDATE state=? with no completed_at write. The host-page
runDuration helper treats nil CompletedAt as "still running", so a
cancelled run kept ticking forever. MarkCompleted / MarkFailed /
MarkDispatchFailed already stamp completed_at; SetState now does the
same for any terminal target state, using COALESCE so we never
clobber an already-set timestamp.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-19 20:21:39 -04:00
..