summaryrefslogtreecommitdiff
path: root/internal/executor/executor.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/executor/executor.go')
-rw-r--r--internal/executor/executor.go7
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
}
}