Skip to main content

Wait

Allows workflows to pause or delay their execution for a specified period of time. This converts to a Temporal Durable Timer.

When to use this

Use Wait to introduce a durable delay into your workflow. The timer survives worker restarts. Typical uses include cooldown periods, scheduled actions and pauses between retry attempts.

Properties

NameTypeRequiredDescription
waitdurationyesThe amount of time to wait.

Example

document:
dsl: 1.0.0
namespace: zigflow
name: example
version: 0.0.1
do:
- wait:
wait:
seconds: 5

Gotchas

The timer is durable. A wait of hours or days survives worker restarts. Temporal holds the timer state. This is intended behaviour.

There is no maximum duration. Very long timers are supported by Temporal but increase workflow history length.