cow-says) into a sequence of step groups with parallel execution inside groups.
- The workflow entrypoint is
triple-moo. triple-moouses astepsblock to orchestrate calls to the reusablecow-saystemplate.cow-saysis a simple container task that runscowsaywith the suppliedmessageparameter.
steps structure
stepsis a list of step-groups (a list of lists).- Each top-level list item (each top-level
-) is a step-group that executes in sequence. - Within a step-group, each inner
-is an individual step that runs in parallel with the other inner steps in that group.
- Each top-level list item (each top-level
Think of
steps as a sequence of step-groups: each top-level dash creates a group that runs one after another; steps inside the same group (inner dashes) run concurrently.- Top-level elements (step-groups) run one after another (sequential).
- Inner list elements inside a group run at the same time (parallel).
- The workflow advances to the next group only after every step in the current group finishes.
- First step-group:
first-mooruns by itself. The workflow waits until it completes.
- Second step-group:
parallel-moo-aandparallel-moo-brun concurrently. The workflow proceeds only after both finish.
| Concept | Behavior | Example |
|---|---|---|
| Step-group (top-level item) | Runs sequentially relative to other groups | First group contains first-moo |
| Steps in a group (inner items) | Run in parallel with each other | parallel-moo-a and parallel-moo-b |
| Entry point | Template name used to start the workflow | entrypoint: triple-moo |
| Reusable template | Called by steps with parameters | cow-says accepts message parameter |
- Use Steps templates when you need explicit ordering and occasional parallelism between tasks.
- Keep reusable work in separate templates and pass parameters for customization.
- Use clear step names to make the execution tree easy to read when inspecting runs with
argo get.