> For the complete CircleCI developer hub index, see [llms.txt](https://circleci.com/developer/llms.txt)

# thinkful/cancel_previous_build_and_wait

Cancels any existing running jobs in the same branch and waits X minutes before starting the build.
Needs the CIRCLECI_API_KEY env var to be set.


## Commands

### cancel_previous_build_and_wait

Cancel previous builds and waits

| Parameter | Type | Default | Description |
|---|---|---|---|
| `wait` | integer | 300 | How long to wait before starting the build |
| `circleci-api-key` | env_var_name | CIRCLECI_API_KEY | In case you use a different Environment Variable Name than CIRCLECI_API_KEY, supply it here. |
| `vcs-type` | string | github | Override VCS to 'bitbucket' if needed. |

## Jobs

### cancel_previous_build_and_wait

| Parameter | Type | Default | Description |
|---|---|---|---|
| `wait` | integer | 300 | How long to wait before starting the build |
| `circleci-api-key` | env_var_name | CIRCLECI_API_KEY | In case you use a different Environment Variable Name than CIRCLECI_API_KEY, supply it here. |
| `vcs-type` | string | github | Override VCS to 'bitbucket' if needed. |

## Executors

### default