Skip to content

Commit

Permalink
fix: backoff is not applied when retryStrategy.limit has been reached.
Browse files Browse the repository at this point in the history
…Fixes argoproj#7588

Signed-off-by: Rohan Kumar <[email protected]>
  • Loading branch information
rohankmr414 committed Apr 4, 2022
1 parent 62e0a8c commit a85501e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workflow/controller/operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,7 @@ func (woc *wfOperationCtx) processNodeRetries(node *wfv1.NodeStatus, retryStrate
}

// See if we have waited past the deadline
if time.Now().Before(waitingDeadline) {
if time.Now().Before(waitingDeadline) && int32(len(node.Children)) <= retryStrategy.Limit.IntVal {
woc.requeueAfter(timeToWait)
retryMessage := fmt.Sprintf("Backoff for %s", humanize.Duration(timeToWait))
return woc.markNodePhase(node.Name, node.Phase, retryMessage), false, nil
Expand Down

0 comments on commit a85501e

Please sign in to comment.