Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: copy-edit of Steps page #13157

Merged
merged 1 commit into from
Jun 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions docs/walk-through/steps.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Steps

In this example, we'll see how to create multi-step workflows, how to define more than one template in a workflow spec, and how to create nested workflows. Be sure to read the comments as they provide useful explanations.
You can create multi-step workflows and nested workflows, as well as define more than one template in a workflow.
See the comments in the example below:

```yaml
apiVersion: argoproj.io/v1alpha1
Expand Down Expand Up @@ -46,7 +47,12 @@ spec:
args: ["{{inputs.parameters.message}}"]
```

The above workflow spec prints three different flavors of "hello". The `hello-hello-hello` template consists of three `steps`. The first step named `hello1` will be run in sequence whereas the next two steps named `hello2a` and `hello2b` will be run in parallel with each other. Using the argo CLI command, we can graphically display the execution history of this workflow spec, which shows that the steps named `hello2a` and `hello2b` ran in parallel with each other.
The above workflow prints three variants of "hello".
The `hello-hello-hello` template has three `steps`.
The first step, `hello1`, runs in sequence, whereas the next two steps, `hello2a` and `hello2b`, run in parallel with each other.

You can use the [`argo get` CLI command](../cli/argo_get.md) to display the execution history.
The example output below shows that `hello2a` and `hello2b` ran in parallel:

```bash
STEP TEMPLATE PODNAME DURATION MESSAGE
Expand Down
Loading