Skip to content

Commit dd5696c

Browse files
committed
fix for run_external_tasks
1 parent 8bde818 commit dd5696c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • pkg/coordinator/tasks/run_external_tasks

pkg/coordinator/tasks/run_external_tasks/task.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ func (t *Task) Execute(ctx context.Context) error {
142142
// execute child tasks
143143
var resError error
144144

145+
taskLoop:
145146
for i, task := range tasks {
146147
if ctx.Err() != nil {
147148
return ctx.Err()
@@ -157,7 +158,7 @@ func (t *Task) Execute(ctx context.Context) error {
157158
default:
158159
if err != nil {
159160
resError = fmt.Errorf("child task #%v failed: %w", i+1, err)
160-
break
161+
break taskLoop
161162
}
162163
}
163164
}

0 commit comments

Comments
 (0)