argoproj / argoproj/argo-workflows

WorkflowTemplate ‘s suspend field can not make affect to those workflows which use it

Open
#9,593 3 comments 2 reactions 1 assignee Claimed by @dpadhiar View on GitHub
area/suspend-resume area/workflow-templates P2
Dominant language
Go
Stars
17k
Forks
3.7k
Avg merge
1d 20h
Merged PRs (30d)
138

Description

## Checklist

* [x] Double-checked my configuration.
* [x] Tested using `:latest` images.
* [x] Attached the smallest workflow that reproduces the issue.

## Summary

What happened/what you expected to happen?
I expected the `Workflow.spec.suspend` same with the `Workflowtemplate` in `Workflow.spec.workflowTemplateRef.name`

Is it a feature and why?
What version are you running?
v3.3.9
## Diagnostics

template
```yaml
apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
name: coinflip-w6pq9
namespace: default
spec:
entrypoint: coin-flip
suspend: true
templates:
- inputs: {}
metadata: {}
name: coin-flip
outputs: {}
steps:
- - arguments: {}
name: flip-coin
template: flip-coin
- inputs: {}
metadata: {}
name: flip-coin
outputs: {}
script:
command:
- python
image: python:alpine3.6
name: ''
resources: {}
source: |

import random
result = "heads" if random.randint(0,1) == 0 else "tails"
print(result)
```

workflow
```yaml
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
name: coin-mdzkb
namespace: default
spec:
arguments: {}
workflowTemplateRef:
name: coinflip-w6pq9
```

---

**Message from the maintainers**:

Impacted by this bug? Give it a 👍. We prioritise the issues with the most 👍.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.