Pause workflow execution for a duration or until a specific time
Pause workflow execution for a duration or until a specific time:
{ wait: { duration: "5m", },}
{ 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.