Skip to content

Commit

Permalink
fix(controller): Revert resubmitPendingPods mistake. Fixes #4001 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
alexec committed Sep 11, 2020
1 parent 49752fb commit 4b7a469
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 @@ -2043,7 +2043,7 @@ func (woc *wfOperationCtx) executeContainer(nodeName string, templateScope strin
node := woc.wf.GetNodeByName(nodeName)
if node == nil {
node = woc.initializeExecutableNode(nodeName, wfv1.NodeTypePod, templateScope, tmpl, orgTmpl, opts.boundaryID, wfv1.NodePending)
} else if tmpl.IsResubmitPendingPods() && !node.Pending() {
} else if !tmpl.IsResubmitPendingPods() && !node.Pending() {
// This is not our first time executing this node.
// We will retry to resubmit the pod if it is allowed and if the node is pending. If either of these two are
// false, return.
Expand Down

0 comments on commit 4b7a469

Please sign in to comment.