diff --git a/workflow/controller/operator.go b/workflow/controller/operator.go index 519eed3afbd2..99334db305d8 100644 --- a/workflow/controller/operator.go +++ b/workflow/controller/operator.go @@ -2154,7 +2154,7 @@ func (woc *wfOperationCtx) executeScript(nodeName string, templateScope string, func (woc *wfOperationCtx) checkForbiddenErrorAndResubmitAllowed(err error, nodeName string, tmpl *wfv1.Template) (*wfv1.NodeStatus, error) { if (apierr.IsForbidden(err) || apierr.IsTooManyRequests(err)) && isResubmitAllowed(tmpl) { // Our error was most likely caused by a lack of resources. If pod resubmission is allowed, keep the node pending - woc.requeue(0) + woc.requeue(10 * time.Second) return woc.markNodePending(nodeName, err), nil } return nil, err