Skip to content

Commit

Permalink
Merge pull request #711 from rushtehrani/fix/send-status
Browse files Browse the repository at this point in the history
fix: Only inject one sys-send-status task
  • Loading branch information
Vafilor authored Nov 9, 2020
2 parents 850b184 + 875097f commit 90f01f8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/workflow_execution.go
Original file line number Diff line number Diff line change
Expand Up @@ -1808,13 +1808,13 @@ func injectWorkflowExecutionStatusCaller(wf *wfv1.Workflow, phase wfv1.NodePhase
for j, task := range t.DAG.Tasks {
if task.Dependencies == nil {
wf.Spec.Templates[i].DAG.Tasks[j].Dependencies = []string{containerTemplate.Name}
wf.Spec.Templates[i].DAG.Tasks = append(t.DAG.Tasks, wfv1.DAGTask{
Name: containerTemplate.Name,
Template: containerTemplate.Name,
})
}
}
}
wf.Spec.Templates[i].DAG.Tasks = append(t.DAG.Tasks, wfv1.DAGTask{
Name: containerTemplate.Name,
Template: containerTemplate.Name,
})
break
}
}
Expand Down

0 comments on commit 90f01f8

Please sign in to comment.