triple-moo. The steps template models a list of lists: each outer list element (a step group) runs sequentially, and each item inside an inner list runs in parallel with the other items in that same group.
Key concepts:
- Outer list elements = sequential groups (one group runs after the previous completes).
- Inner list items = tasks that run in parallel within their group.
The steps template structure is a list of lists. Each top-level list element is a step group executed sequentially; items inside that group (an inner list) execute in parallel.
Example workflow
In this workflow:- The first step group contains a single step
first-moothat runs first. - After
first-moocompletes, the second step group runs two items in parallel:parallel-moo-aandparallel-moo-b. - All steps call the
cow-saystemplate and pass amessageparameter.
How execution proceeds
- Argo executes the first outer list element — the group containing
first-moo. - Once
first-moosucceeds, Argo proceeds to the next outer list element. - The next group contains
parallel-moo-aandparallel-moo-b; those run concurrently.
| Component | Behavior | Example |
|---|---|---|
| Outer list element (step group) | Runs sequentially, one group after another | The first group runs before the second group |
| Inner list items | Run in parallel within the same group | parallel-moo-a and parallel-moo-b run concurrently |
| Template reference | Defines the work each step performs | cow-says template runs the rancher/cowsay container |
Sample logs
When you inspect the logs forfirst-moo, you’ll see the cowsay output such as:
parallel-moo-a and parallel-moo-b) will produce its own cowsay output when they run.
Previewing the execution graph
You can preview how the workflow will execute before submitting it using the Argo Workflows UI. Paste the YAML into the UI and choose the graph view to see the sequence and parallelism visually.
Links and references
- Argo Workflows: https://argoproj.github.io/argo-workflows/
- Argo Workflows concepts: https://argoproj.github.io/argo-workflows/workflows/what-is-workflow/
- Docker image used in example: https://hub.docker.com/r/rancher/cowsay