logic.sleep holds an execution for a number of seconds and then continues down success. Use it to wait for an
outside system to catch up, or to space out calls.
How long it waits
- A fraction rounds up to a whole second.
1.2waits two seconds, and0.1waits one. Waits count in whole seconds. - Nothing to wait for is a wait of zero. A negative value, or one that is not a number, waits no time and the flow continues, with no error.
- The wait has a ceiling. The limit
blobhub.compute.workflow.sleep_secondscaps onelogic.sleep(Limits). A wait over it fails the execution before it waits, with an error event that names the limit. - A wait that would outlive the execution fails too. If the wait ends after the execution’s own time budget, the
execution fails with the limit
blobhub.compute.workflow.execution_seconds, again before it waits.
While it waits
The execution posts acomponent.output event, Sleeping for 5 seconds..., and then pauses. The wait is spent by the
workflow’s state machine, not by the component, and it counts against the execution’s
blobhub.compute.workflow.execution_seconds. When the wait ends, the flow continues along success. A logic.sleep
with no component after it completes without waiting.
A logic.sleep has no failure route. A wait that is refused fails the execution rather than routing.
Example
Corvel Freight books a carrier and has to give the carrier’s system time to confirm. Alogic.sleep after the booking
step waits 2.5 seconds, rounded up to three, before a logic.code fetches the confirmation.

