argoproj / argoproj/argo-workflows

Support Json list on WithSequence

Open
#3,046 1 comment 5 reactions 0 assignees View on GitHub
area/looping area/templating
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.