Skip to content

Commit

Permalink
fix dag retries (argoproj#1221)
Browse files Browse the repository at this point in the history
  • Loading branch information
houz authored and xianlu committed Feb 20, 2019
1 parent 7c1f232 commit e817cdf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion workflow/controller/dag.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ func (d *dagContext) assessDAGPhase(targetTasks []string, nodes map[string]wfv1.
unsuccessfulPhase = node.Phase
}
if node.Type == wfv1.NodeTypeRetry {
if hasMoreRetries(&node, d.wf) {
if node.Successful() {
retriesExhausted = false
} else if hasMoreRetries(&node, d.wf) {
retriesExhausted = false
}
}
Expand Down

0 comments on commit e817cdf

Please sign in to comment.