diff options
| author | Claudomator Agent <agent@claudomator.local> | 2026-07-09 04:39:05 +0000 |
|---|---|---|
| committer | Claudomator Agent <agent@claudomator.local> | 2026-07-09 04:39:05 +0000 |
| commit | 4ba335c8eacb3f9e20bccce1643b2e5320d5239d (patch) | |
| tree | 397433d1db8564b3818f6b73744567662c15c9d0 /internal/executor/executor.go | |
| parent | 884da0ba74f622dc5c41cde25710718762321ae8 (diff) | |
feat(task,executor): add CurrentAttempt resolution, wire maybeUnblockParent to resolve through it
Diffstat (limited to 'internal/executor/executor.go')
| -rw-r--r-- | internal/executor/executor.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/internal/executor/executor.go b/internal/executor/executor.go index 88a5783..03b368e 100644 --- a/internal/executor/executor.go +++ b/internal/executor/executor.go @@ -1259,7 +1259,12 @@ func (p *Pool) maybeUnblockParent(parentID string) { return } for _, sub := range subtasks { - if sub.State != task.StateCompleted { + current, err := task.CurrentAttempt(p.store, sub.ID) + if err != nil { + p.logger.Error("maybeUnblockParent: resolve current attempt", "parentID", parentID, "subtaskID", sub.ID, "error", err) + return + } + if current.State != task.StateCompleted { return } } |
