diff options
| author | Claudomator Agent <agent@claudomator> | 2026-03-09 08:04:07 +0000 |
|---|---|---|
| committer | Claudomator Agent <agent@claudomator> | 2026-03-09 08:04:07 +0000 |
| commit | c8e3b467afdfcee9c5047902662d49d33c862764 (patch) | |
| tree | e39df5351d6624edc531a76ada0c0c15fd9b862a /internal/task/task_test.go | |
| parent | 441ed9eef3d9691cd9269772857307b84a7f5700 (diff) | |
executor: unblock parent task when all subtasks complete
Add maybeUnblockParent helper that transitions a BLOCKED parent task to
READY once every subtask is in the COMPLETED state. Called in both
execute() and executeResume() immediately after a subtask is marked
COMPLETED. Any non-COMPLETED sibling (RUNNING, FAILED, etc.) keeps the
parent BLOCKED.
Tests added:
- TestPool_Submit_LastSubtask_UnblocksParent
- TestPool_Submit_NotLastSubtask_ParentStaysBlocked
- TestPool_Submit_ParentNotBlocked_NoTransition
Diffstat (limited to 'internal/task/task_test.go')
0 files changed, 0 insertions, 0 deletions
