> ## Documentation Index
> Fetch the complete documentation index at: https://synthetiq.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# waitFor

> Pause workflow execution for a duration or until a specific time

Pause workflow execution for a duration or until a specific time:

```typescript theme={null}
{
  wait: {
    duration: "5m",
  },
}
```

```typescript theme={null}
{
  wait: {
    until: "2024-01-15T09:00:00Z",
  },
}
```

| Field      | Required | Description                                                    |
| ---------- | -------- | -------------------------------------------------------------- |
| `duration` | No       | Time to wait: `"30s"`, `"5m"`, `"2h"`, `"1d"`                  |
| `until`    | No       | ISO timestamp to wait until (takes precedence over `duration`) |

One of `duration` or `until` must be specified.

The workflow pauses at the wait step and resumes automatically when the time elapses. The worker does not hold resources during the wait — the job is checkpointed and resumed by the scheduler.

## Validation

| Check                                   |
| --------------------------------------- |
| `duration` or `until` must be specified |
