summaryrefslogtreecommitdiff
path: root/internal/task/currentattempt.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/task/currentattempt.go')
-rw-r--r--internal/task/currentattempt.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/task/currentattempt.go b/internal/task/currentattempt.go
index 24eed10..924e9ea 100644
--- a/internal/task/currentattempt.go
+++ b/internal/task/currentattempt.go
@@ -42,7 +42,7 @@ func CurrentAttempt(store TaskLookup, anchorID string) (*Task, error) {
}
var next *Task
for _, d := range dependents {
- if d.ParentTaskID == current.ParentTaskID && len(d.DependsOn) == 1 && d.DependsOn[0] == current.ID {
+ if d.ParentTaskID == current.ParentTaskID && d.Agent.Role == current.Agent.Role && len(d.DependsOn) == 1 && d.DependsOn[0] == current.ID {
next = d
break
}