Skip to content

Wait

Operation module: async_durable_execution._operation.wait.

Use wait() to suspend a durable execution without consuming Lambda compute for the delay.

User-facing durable wait operation.

Functions:

wait

wait(
    duration: Duration, *, name: str | None = None
) -> Task[None]

Suspend the durable execution for at least the given duration.

Parameters:

Name Type Description Default
duration Duration

Seconds or timedelta to pause. Must be at least one second.

required
name str | None

Optional operation name shown in execution history.

None