argoproj / argoproj/argo-workflows
Support Json list on WithSequence
- Dominant language
- Go
- Stars
- 17k
- Forks
- 3.7k
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 138
Description
# Summary
`WithParam` will take JSON array and generate parallel steps for execution. `WithSequence` should support the same.
There is a workaround to achieve the sequence execution using `parallelism`
```yaml
- name: loop-param-result-example
parallelism: 1
steps:
- - name: generate
template: gen-number-list
- - name: sleep
template: sleep-n-sec
arguments:
parameters:
- name: seconds
value: "{{item}}"
withParam: "{{steps.generate.outputs.result}}"
```
What change you think needs making.
# Motivation
Please give examples of your use case, e.g. when would you use this.
# Proposal
How do you think this should be implemented?
---
**Message from the maintainers**:
If you wish to see this enhancement implemented please add a 👍 reaction to this issue! We often sort issues this way to know what to prioritize.
Contributor guide
Research direction
Start by locating the WithParam and WithSequence entry points and the workflow execution tests that cover JSON-list expansion. Use the provided YAML example as the behavioral reference: a JSON array passed to WithSequence should create sequential steps, without requiring the parallelism workaround; add coverage that confirms the execution order.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, kubernetes
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100