summaryrefslogtreecommitdiff
path: root/internal/executor/preamble.go
diff options
context:
space:
mode:
authorPeter Stone <thepeterstone@gmail.com>2026-03-08 20:40:02 +0000
committerPeter Stone <thepeterstone@gmail.com>2026-03-08 20:40:02 +0000
commit8777bf226529f45a1c29b3e63ba8efee916e1726 (patch)
treecf0d6f8cd0f0b030bbd20fe5807dbd24642450df /internal/executor/preamble.go
parent1f36e2312d316969db65a601ac7d9793fbc3bc4c (diff)
storage: enforce valid state transitions in UpdateTaskState
UpdateTaskState now validates the transition using ValidTransition inside a transaction. Invalid transitions return an error rather than blindly updating. Tests for retry-limit and running-task-rejection test setup are updated to create tasks with the target state directly via CreateTask to bypass the transition guard in setup code. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'internal/executor/preamble.go')
0 files changed, 0 insertions, 0 deletions