# wait

Canonical URL: https://developers.iagenify.com/sdk/workflows/steps/wait/
Language: en

`type: "wait"`

A pause in the chain: a number of seconds, or until a date. One day at most — beyond that it is a schedule, not a pause.

Status: free · 86 400 s at most · seconds or until

| Name | Type | Requirement | Description |
| --- | --- | --- | --- |
| `seconds` | number |  | How long. Positive, 86 400 at most. |
| `until` | string |  | A date, instead of a duration. |

One of the two is required. A duration longer than a day is refused with the reason: past that, what is wanted is a scheduled trigger.

```javascript
{ id: "settle", type: "wait", config: { seconds: 120 } }
```

## What it is for {#use}

- Letting a certificate become active after a host is created.
- Giving an external service time to finish something a webhook announced.
- Spacing out calls to a service that rate-limits.

## Output {#output}

```javascript
{{steps.settle.output.waitedSeconds}}
{{steps.settle.output.waitedUntil}}
```

## It is not a poll {#not-polling}

> **A wait does not check anything**
>
> It pauses. To wait for a condition, follow it with the step that checks and a condition that branches — a wait followed by a check is a poll; a wait alone is a guess.

## It cannot be a loop body {#loop-body}

Nor can a condition, a switch, a merge, a human step or another loop: those live in the graph. A loop repeats one step that does work.

- [loop](/sdk/workflows/steps/loop): Repeating instead of pausing.
- [condition](/sdk/workflows/steps/condition): Checking after a wait.
- [Workflow steps](/sdk/workflows/steps): The 23 types.

```python
{"id": "settle", "type": "wait", "config": {"seconds": 120}}
```

```python
"{{steps.settle.output.waitedSeconds}}"
"{{steps.settle.output.waitedUntil}}"
```
