From 584cb402c4057de79198dcb0e82de6337e6ea138 Mon Sep 17 00:00:00 2001 From: Alex Collins Date: Mon, 13 Jul 2020 14:15:38 -0700 Subject: [PATCH] fix(controller): Port master fix for #3214 --- workflow/controller/operator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workflow/controller/operator.go b/workflow/controller/operator.go index 5a29ffa8a75a..287959f0ee4a 100644 --- a/workflow/controller/operator.go +++ b/workflow/controller/operator.go @@ -1842,7 +1842,7 @@ func (woc *wfOperationCtx) executeContainer(nodeName string, templateScope strin node := woc.getNodeByName(nodeName) if node == nil { node = woc.initializeExecutableNode(nodeName, wfv1.NodeTypePod, templateScope, tmpl, orgTmpl, opts.boundaryID, wfv1.NodePending) - } else if !isResubmitAllowed(tmpl) || !node.Pending() { + } else if !isResubmitAllowed(tmpl) && !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.