# Wait Step

<%= toc %>

A *wait* step waits for all previous steps to have successfully completed before allowing following jobs to continue.

<%= image "wait-step.png", width: 1070/2, height: 508/2, alt: "Screenshot of a basic wait step" %>

A basic wait step can be defined in your pipeline settings, or in your [pipeline.yml](/docs/pipelines/uploading-pipelines) file. It can be placed between steps to ensure that previous steps are successful before continuing to run the rest. 

```yml
- command: "command.sh"
- wait
- command: "echo The command passed"
```

# Wait Step

<%= toc %>

A *wait* step waits for all previous steps to have successfully completed before allowing following jobs to continue.

<%= image "wait-step.png", width: 1070/2, height: 508/2, alt: "Screenshot of a basic wait step" %>

A basic wait step can be defined in your pipeline settings, or in your [pipeline.yml](/docs/pipelines/uploading-pipelines) file. It can be placed between steps to ensure that previous steps are successful before continuing to run the rest. 

```yml
- command: "command.sh"
- wait
- command: "echo The command passed"
```

You can also configure the *wait* step to wait for all previous steps to have completed, even if there are failures. Here is the syntax for that:
```yml
- command: "command.sh"
- wait: ~
  continue_on_failure: true
- command: "echo The command may or may not have passed"
```

Document the option to continue on fail
Document the option to continue on fail