Skip to content

Commit

Permalink
succeed run_task_matrix if no child task was executed
Browse files Browse the repository at this point in the history
  • Loading branch information
pk910 committed Feb 3, 2025
1 parent 2412c2b commit b39eba4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/coordinator/tasks/run_task_matrix/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ func (t *Task) Execute(ctx context.Context) error {
if !taskComplete {
taskComplete = true

if t.config.FailOnUndecided {
if t.config.FailOnUndecided && len(t.tasks) > 0 {
t.ctx.SetResult(types.TaskResultFailure)
} else {
t.ctx.SetResult(types.TaskResultSuccess)
Expand Down

0 comments on commit b39eba4

Please sign in to comment.