summaryrefslogtreecommitdiff
path: root/internal/task/task.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/task/task.go')
-rw-r--r--internal/task/task.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/task/task.go b/internal/task/task.go
index 6b240dd..8bb3214 100644
--- a/internal/task/task.go
+++ b/internal/task/task.go
@@ -123,7 +123,7 @@ func ValidTransition(from, to State) bool {
StateFailed: {StateQueued}, // retry
StateTimedOut: {StateQueued}, // retry
StateCancelled: {StateQueued}, // restart
- StateBlocked: {StateQueued}, // answer received → re-queue as resume execution
+ StateBlocked: {StateQueued, StateReady}, // answer received → re-queue as resume execution
}
for _, allowed := range transitions[from] {
if allowed == to {