Retry node left permanently Running when failFast fires while it is the failing child (Steps template, parallelism + failFast + retryStrategy)
Author: capacmanCreated Sep 1, 2026Updated Sep 23, 2026
Pre-requisites
- I have double-checked my configuration
- I have tested with the
:latestimage tag (i.e.quay.io/argoproj/workflow-controller:latest) and can confirm the issue still exists on:latest. If not, I have explained why, in detail, in my description below. - I have searched existing issues and could not find a match for this bug
- I'd like to contribute the fix myself (see contributing guide)
What happened? What did you expect to happen?
When failFast fires inside a Steps template (parallelism: 1) while the failing item is a template with a retryStrategy, the StepGroup/Steps nodes correctly become Failed, but the Retry-type node wrapping that item is never moved out of Running. It stays Running/finishedAt: null forever, which then also keeps the outer DAG (and the whole Workflow) stuck in phase: Running indefinitely, even though every other node is terminal.
The Retry node should also reach a terminal phase (Failed), and the Workflow should complete as Failed instead of running forever.
Version(s)
v3.5.18,v4.1.2,26e430cf94bf6cf915be3abe8b5c2ea6f5a7cb792da604ab9b45dbf12d8b7efa
Paste a minimal workflow that reproduces the issue. We must be able to run the workflow; don't enter a workflow that uses private images.
apiVersion: v1
kind: ServiceAccount
metadata:
name: henkan-executor
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: henkan-executor
rules:
- apiGroups:
- ""
resources:
- pods
- services
- configmaps
- persistentvolumeclaims
verbs:
- '*'
- apiGroups:
- ""
resources:
- pods/log
verbs:
- get
- watch
- apiGroups:
- ""
resources:
- pods/exec
verbs:
- create
- apiGroups:
- networking.k8s.io
resources:
- ingresses
verbs:
- '*'
- apiGroups:
- argoproj.io
resources:
- workflowtaskresults
verbs:
- create
- patch
- apiGroups:
- argoproj.io
resources:
- workflowtasksets
- workflowartifactgctasks
verbs:
- list
- watch
- apiGroups:
- argoproj.io
resources:
- workflowtasksets/status
- workflowartifactgctasks/status
verbs:
- patch
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: henkan-executor-rb
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: henkan-executor
subjects:
- kind: ServiceAccount
name: henkan-executor-sa
---
apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
name: bug-wft
spec:
entrypoint: main
serviceAccountName: henkan-executor-sa
templates:
- name: step-1
container:
image: alpine:3.20
command: [sh, -c]
args:
- echo "step-1 run"
- name: step-2
container:
image: alpine:3.20
command: [sh, -c]
args:
- echo "step-2 output" > /tmp/output.txt
outputs:
parameters:
- name: message
valueFrom:
path: /tmp/output.txt
- name: step-3
container:
image: alpine:3.20
command: [sh, -c]
args:
- echo "step-3 output" > /tmp/output.txt
outputs:
parameters:
- name: message
valueFrom:
path: /tmp/output.txt
- name: step-fail
retryStrategy:
retryPolicy: "Always"
backoff:
duration: '1'
limit: '2'
container:
image: alpine:3.20
command: [sh, -c]
args:
- exit 1
---
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
name: bug-wf
spec:
entrypoint: main
serviceAccountName: henkan-executor-sa
arguments:
parameters:
- name: items
value: |
[
"step-1" ,
"step-2" ,
"step-fail",
"step-3",
"step-1",
"step-2"
]
templates:
- name: main
dag:
tasks:
- name: initial
templateRef:
name: bug-wft
template: step-1
- name: loop
template: loop
dependencies: [initial]
- name: loop
parallelism: 1
failFast: true
steps:
- - name: step-1
templateRef:
name: bug-wft
template: "{{item}}"
withParam: "{{=workflow.parameters.items}}"Logs from the workflow controller
time=2026-09-01T14:40:14.037Z level=INFO msg="Processing workflow" component=workflow_worker workflow=bug-wf namespace=default phase=Running resourceVersion=1211
time=2026-09-01T14:40:14.037Z level=INFO msg="Task-result reconciliation" component=workflow_worker numObjs=3 workflow=bug-wf namespace=default
time=2026-09-01T14:40:14.040Z level=INFO msg="Node was nil, will be initialized as type Skipped" namespace=default component=workflow_worker workflow=bug-wf
time=2026-09-01T14:40:14.040Z level=INFO msg="node initialized" component=workflow_worker workflow=bug-wf namespace=default node=bug-wf-357802117 phase=Running message=""
time=2026-09-01T14:40:14.041Z level=INFO msg="node initialized" message="" component=workflow_worker workflow=bug-wf namespace=default node=bug-wf-1097763044 phase=Pending
time=2026-09-01T14:40:14.041Z level=INFO msg=getExecutorLogOpts component=workflow_worker workflow=bug-wf namespace=default nodeName=bug-wf.loop[0].step-1(2:step-fail)(0) nodeID=bug-wf-1097763044 loglevel=info
time=2026-09-01T14:40:14.041Z level=INFO msg=getExecutorLogOpts nodeID=bug-wf-1097763044 component=workflow_worker loglevel=info workflow=bug-wf namespace=default nodeName=bug-wf.loop[0].step-1(2:step-fail)(0)
time=2026-09-01T14:40:14.041Z level=INFO msg=getExecutorLogOpts namespace=default nodeName=bug-wf.loop[0].step-1(2:step-fail)(0) nodeID=bug-wf-1097763044 component=workflow_worker workflow=bug-wf loglevel=info
time=2026-09-01T14:40:14.042Z level=INFO msg="trace parent" component=workflow_worker workflow=bug-wf namespace=default nodeName=bug-wf.loop[0].step-1(2:step-fail)(0) podName=bug-wf-step-fail-1097763044 startMethod=StartWaitClientRateLimiter actualParent=createWorkflowPod nodeID=bug-wf-1097763044
time=2026-09-01T14:40:14.048Z level=INFO msg="Created pod" workflow=bug-wf namespace=default nodeName=bug-wf.loop[0].step-1(2:step-fail)(0) podName=bug-wf-step-fail-1097763044 nodeID=bug-wf-1097763044 component=workflow_worker
time=2026-09-01T14:40:14.048Z level=INFO msg="Node was nil, will be initialized as type Skipped" component=workflow_worker workflow=bug-wf namespace=default
time=2026-09-01T14:40:14.048Z level=INFO msg="add pod event" pod=bug-wf-step-fail-1097763044 component=pod_controller
time=2026-09-01T14:40:14.048Z level=INFO msg="template active children parallelism exceeded" parallelism=1 component=workflow_worker workflow=bug-wf namespace=default node=bug-wf-3581709347
time=2026-09-01T14:40:14.048Z level=INFO msg="Node was nil, will be initialized as type Skipped" workflow=bug-wf namespace=default component=workflow_worker
time=2026-09-01T14:40:14.049Z level=INFO msg="template active children parallelism exceeded" parallelism=1 node=bug-wf-3581709347 component=workflow_worker workflow=bug-wf namespace=default
time=2026-09-01T14:40:14.049Z level=INFO msg="Node was nil, will be initialized as type Skipped" namespace=default component=workflow_worker workflow=bug-wf
time=2026-09-01T14:40:14.049Z level=INFO msg="template active children parallelism exceeded" component=workflow_worker workflow=bug-wf namespace=default node=bug-wf-3581709347 parallelism=1
time=2026-09-01T14:40:14.049Z level=INFO msg="Workflow step group node not yet completed" component=workflow_worker workflow=bug-wf namespace=default nodeID=bug-wf-3529368015
time=2026-09-01T14:40:14.049Z level=INFO msg="TaskSet Reconciliation" component=workflow_worker workflow=bug-wf namespace=default
time=2026-09-01T14:40:14.049Z level=INFO msg=reconcileAgentPod component=workflow_worker workflow=bug-wf namespace=default
time=2026-09-01T14:40:14.050Z level=INFO msg="Workflow to be dehydrated" component=workflow_worker workflow=bug-wf namespace=default "Workflow Size"=3965
time=2026-09-01T14:40:14.050Z level=INFO msg="trace parent" workflow=bug-wf namespace=default component=workflow_worker startMethod=StartWaitClientRateLimiter actualParent=persistUpdates
time=2026-09-01T14:40:14.055Z level=INFO msg="update pod event" component=pod_controller pod=bug-wf-step-fail-1097763044
time=2026-09-01T14:40:14.069Z level=INFO msg="Workflow update successful" component=workflow_worker workflow=bug-wf namespace=default resourceVersion=1238 phase=Running
time=2026-09-01T14:40:14.069Z level=INFO msg="queueing pod for cleanup" namespace=default podName=bug-wf-step-2-2793796610 action=labelPodCompleted component=pod_controller
time=2026-09-01T14:40:14.069Z level=INFO msg="Event occurred" type=Normal reason=WorkflowNodeRunning message="Running node bug-wf.loop[0].step-1(1:step-2)" object.name=bug-wf object.namespace=default fieldPath="" kind=Workflow component=workflow_worker apiVersion=argoproj.io/v1alpha1
time=2026-09-01T14:40:14.069Z level=INFO msg="Event occurred" message="Succeeded node bug-wf.loop[0].step-1(1:step-2)" object.name=bug-wf object.namespace=default component=workflow_worker fieldPath="" kind=Workflow apiVersion=argoproj.io/v1alpha1 type=Normal reason=WorkflowNodeSucceeded
time=2026-09-01T14:40:14.069Z level=INFO msg="Event occurred" component=workflow_worker object.name=bug-wf object.namespace=default fieldPath="" kind=Workflow apiVersion=argoproj.io/v1alpha1 type=Normal reason=WorkflowNodeRunning message="Running node bug-wf.loop[0].step-1(2:step-fail)"
time=2026-09-01T14:40:14.074Z level=INFO msg="cleaning up pod" component=pod_controller podName=bug-wf-step-2-2793796610 key=default/bug-wf-step-2-2793796610/labelPodCompleted action=labelPodCompleted namespace=default
time=2026-09-01T14:40:14.074Z level=INFO msg="trace parent" component=pod_controller podName=bug-wf-step-2-2793796610 key=default/bug-wf-step-2-2793796610/labelPodCompleted action=labelPodCompleted namespace=default startMethod=StartWaitClientRateLimiter actualParent=startupController
time=2026-09-01T14:40:14.082Z level=INFO msg="update pod event" pod=bug-wf-step-fail-1097763044 component=pod_controller
time=2026-09-01T14:40:14.093Z level=INFO msg="delete pod event" component=pod_controller pod=bug-wf-step-2-2793796610
time=2026-09-01T14:40:15.319Z level=INFO msg="update pod event" component=pod_controller pod=bug-wf-step-fail-1097763044
time=2026-09-01T14:40:16.321Z level=INFO msg="update pod event" component=pod_controller pod=bug-wf-step-fail-1097763044
time=2026-09-01T14:40:17.338Z level=INFO msg="update pod event" component=pod_controller pod=bug-wf-step-fail-1097763044
time=2026-09-01T14:40:18.540Z level=INFO msg="update pod event" pod=bug-wf-step-fail-1097763044 component=pod_controller
time=2026-09-01T14:40:24.050Z level=INFO msg="Processing workflow" resourceVersion=1238 component=workflow_worker workflow=bug-wf namespace=default phase=Running
time=2026-09-01T14:40:24.050Z level=INFO msg="Task-result reconciliation" namespace=default component=workflow_worker workflow=bug-wf numObjs=4
time=2026-09-01T14:40:24.051Z level=INFO msg="Pod failed" workflow=bug-wf pod=bug-wf-step-fail-1097763044 message="main: Error (exit code 1)" displayName=step-1(2:step-fail)(0) templateName=step-fail namespace=default component=workflow_worker
time=2026-09-01T14:40:24.053Z level=INFO msg="node phase changed" node=bug-wf-3529368015 fromPhase=Running toPhase=Failed component=workflow_worker workflow=bug-wf namespace=default
time=2026-09-01T14:40:24.053Z level=INFO msg="node message changed" component=workflow_worker workflow=bug-wf namespace=default node=bug-wf-3529368015 message="template has failed or errored children and failFast enabled"
time=2026-09-01T14:40:24.053Z level=INFO msg="node finished" workflow=bug-wf node=bug-wf-3529368015 finishedAt=2026-09-01T14:40:24.053358091Z namespace=default component=workflow_worker
time=2026-09-01T14:40:24.053Z level=ERROR msg="tracing expect node for end node failed" taskName=loop component=workflow_worker workflow=bug-wf namespace=default error="no existing trace for a running node"
time=2026-09-01T14:40:24.053Z level=INFO msg="node phase changed" component=workflow_worker workflow=bug-wf namespace=default node=bug-wf-3581709347 fromPhase=Running toPhase=Failed
time=2026-09-01T14:40:24.053Z level=INFO msg="node message changed" workflow=bug-wf namespace=default node=bug-wf-3581709347 message="template has failed or errored children and failFast enabled" component=workflow_worker
time=2026-09-01T14:40:24.053Z level=INFO msg="node finished" finishedAt=2026-09-01T14:40:24.053499492Z component=workflow_worker workflow=bug-wf namespace=default node=bug-wf-3581709347
time=2026-09-01T14:40:24.053Z level=ERROR msg="tracing expect node for end node failed" namespace=default taskName=loop component=workflow_worker workflow=bug-wf error="no existing trace for a running node"
time=2026-09-01T14:40:24.053Z level=INFO msg="TaskSet Reconciliation" component=workflow_worker workflow=bug-wf namespace=default
time=2026-09-01T14:40:24.053Z level=INFO msg=reconcileAgentPod workflow=bug-wf namespace=default component=workflow_worker
time=2026-09-01T14:40:24.055Z level=INFO msg="Workflow to be dehydrated" component=workflow_worker workflow=bug-wf namespace=default "Workflow Size"=4227
time=2026-09-01T14:40:24.055Z level=INFO msg="trace parent" namespace=default actualParent=persistUpdates startMethod=StartWaitClientRateLimiter component=workflow_worker workflow=bug-wf
time=2026-09-01T14:40:24.101Z level=INFO msg="Workflow update successful" workflow=bug-wf namespace=default component=workflow_worker resourceVersion=1263 phase=Running
time=2026-09-01T14:40:24.101Z level=INFO msg="queueing pod for cleanup" component=pod_controller namespace=default podName=bug-wf-step-fail-1097763044 action=labelPodCompleted
time=2026-09-01T14:40:24.101Z level=INFO msg="Event occurred" apiVersion=argoproj.io/v1alpha1 type=Warning reason=WorkflowNodeFailed component=workflow_worker message="Failed node bug-wf.loop: template has failed or errored children and failFast enabled" object.name=bug-wf object.namespace=default fieldPath="" kind=Workflow
time=2026-09-01T14:40:24.101Z level=INFO msg="Event occurred" component=workflow_worker apiVersion=argoproj.io/v1alpha1 type=Normal reason=WorkflowNodeRunning message="Running node bug-wf.loop[0].step-1(2:step-fail)(0): main: Error (exit code 1)" object.name=bug-wf object.namespace=default fieldPath="" kind=Workflow
time=2026-09-01T14:40:24.101Z level=INFO msg="Event occurred" message="Failed node bug-wf.loop[0].step-1(2:step-fail)(0): main: Error (exit code 1)" object.name=bug-wf object.namespace=default fieldPath="" component=workflow_worker kind=Workflow apiVersion=argoproj.io/v1alpha1 type=Warning reason=WorkflowNodeFailed
time=2026-09-01T14:40:24.101Z level=INFO msg="Event occurred" object.name=bug-wf object.namespace=default fieldPath="" kind=Workflow apiVersion=argoproj.io/v1alpha1 component=workflow_worker type=Warning reason=WorkflowNodeFailed message="Failed node bug-wf.loop[0]: template has failed or errored children and failFast enabled"
time=2026-09-01T14:40:24.106Z level=INFO msg="cleaning up pod" podName=bug-wf-step-fail-1097763044 component=pod_controller key=default/bug-wf-step-fail-1097763044/labelPodCompleted action=labelPodCompleted namespace=default
time=2026-09-01T14:40:24.106Z level=INFO msg="trace parent" startMethod=StartWaitClientRateLimiter actualParent=startupController component=pod_controller key=default/bug-wf-step-fail-1097763044/labelPodCompleted action=labelPodCompleted namespace=default podName=bug-wf-step-fail-1097763044
time=2026-09-01T14:40:24.124Z level=INFO msg="delete pod event" component=pod_controller pod=bug-wf-step-fail-1097763044
time=2026-09-01T14:40:34.108Z level=INFO msg="Processing workflow" namespace=default component=workflow_worker workflow=bug-wf phase=Running resourceVersion=1263
time=2026-09-01T14:40:34.108Z level=INFO msg="Task-result reconciliation" namespace=default numObjs=4 component=workflow_worker workflow=bug-wf
time=2026-09-01T14:40:34.110Z level=INFO msg="TaskSet Reconciliation" component=workflow_worker workflow=bug-wf namespace=default
time=2026-09-01T14:40:34.110Z level=INFO msg=reconcileAgentPod namespace=default component=workflow_worker workflow=bug-wf
capacman@anil-lemurpro ~/p/h/wfbug> kubectl logs -n argo -c wait -l workflows.argoproj.io/workflow=bug-wf,workflow.argoproj.io/phase!=Succeeded
No resources found in argo namespace.
capacman@anil-lemurpro ~/p/h/wfbug> kubectl logs -c wait -l workflows.argoproj.io/workflow=bug-wf,workflow.argoproj.io/phase!=Succeeded
time=2026-09-01T14:39:55.345Z level=INFO msg="Using executor retry strategy" argo=true Steps=5 Duration=1s Factor=1.6 Jitter=0.5
time=2026-09-01T14:39:55.345Z level=INFO msg="Executor initialized" includeScriptOutput=false gitTreeState=clean goVersion=go1.26.5 podName=bug-wf-step-1-956186526 templateName=step-1 namespace=default argo=true deadline=0001-01-01T00:00:00.000Z version=v4.1.2 buildDate=2026-08-21T11:10:01Z gitCommit=16a52d67daf2f4a8a76fa8bec02a76a46aa46257 gitTag=v4.1.2
time=2026-09-01T14:39:55.351Z level=INFO msg="Starting deadline monitor" argo=true containers=[main]
time=2026-09-01T14:39:56.439Z level=INFO msg="Main container completed" argo=true error=<nil>
time=2026-09-01T14:39:56.439Z level=INFO msg="No Script output reference in workflow. Capturing script output ignored" argo=true
time=2026-09-01T14:39:56.439Z level=INFO msg="No output parameters" argo=true
time=2026-09-01T14:39:56.439Z level=INFO msg="No output artifacts" argo=true
time="2026-09-01T14:39:56.446Z" level=info msg="Alloc=10339 TotalAlloc=16702 Sys=28814 NumGC=4 Goroutines=9"
time=2026-09-01T14:39:56.446Z level=INFO msg="no artifact sidecars to kill" argo=true
time=2026-09-01T14:39:56.453Z level=INFO msg="Deadline monitor stopped" argo=true
time=2026-09-01T14:40:06.485Z level=INFO msg="Main container completed" argo=true error=<nil>
time=2026-09-01T14:40:06.486Z level=INFO msg="No Script output reference in workflow. Capturing script output ignored" argo=true
time=2026-09-01T14:40:06.486Z level=INFO msg="Saving output parameters" argo=true
time=2026-09-01T14:40:06.486Z level=INFO msg="Saving path output parameter" argo=true name=message
time=2026-09-01T14:40:06.486Z level=INFO msg="Copying from base image layer" argo=true path=/tmp/output.txt
time=2026-09-01T14:40:06.486Z level=INFO msg="Successfully saved output parameter" name=message argo=true
time=2026-09-01T14:40:06.486Z level=INFO msg="No output artifacts" argo=true
time="2026-09-01T14:40:06.493Z" level=info msg="Alloc=10093 TotalAlloc=16712 Sys=28122 NumGC=4 Goroutines=9"
time=2026-09-01T14:40:06.493Z level=INFO msg="no artifact sidecars to kill" argo=true
time=2026-09-01T14:40:06.502Z level=INFO msg="Deadline monitor stopped" argo=true
time=2026-09-01T14:40:15.442Z level=INFO msg="Using executor retry strategy" argo=true Duration=1s Factor=1.6 Jitter=0.5 Steps=5
time=2026-09-01T14:40:15.443Z level=INFO msg="Executor initialized" version=v4.1.2 buildDate=2026-08-21T11:10:01Z gitTreeState=clean templateName=step-fail gitCommit=16a52d67daf2f4a8a76fa8bec02a76a46aa46257 includeScriptOutput=false namespace=default deadline=0001-01-01T00:00:00.000Z goVersion=go1.26.5 argo=true podName=bug-wf-step-fail-1097763044 gitTag=v4.1.2
time=2026-09-01T14:40:15.449Z level=INFO msg="Starting deadline monitor" argo=true containers=[main]
time=2026-09-01T14:40:16.571Z level=INFO msg="Main container completed" argo=true error=<nil>
time=2026-09-01T14:40:16.571Z level=INFO msg="No Script output reference in workflow. Capturing script output ignored" argo=true
time=2026-09-01T14:40:16.571Z level=INFO msg="No output parameters" argo=true
time=2026-09-01T14:40:16.571Z level=INFO msg="No output artifacts" argo=true
time="2026-09-01T14:40:16.5Source: argoproj/argo-workflows