Skip to main content
Pause workflow execution for a duration or until a specific time:
{
  wait: {
    duration: "5m",
  },
}
{
  wait: {
    until: "2024-01-15T09:00:00Z",
  },
}
FieldRequiredDescription
durationNoTime to wait: "30s", "5m", "2h", "1d"
untilNoISO 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