Skip to content
Proud to collaborate with Microsoft for Startups

control.flow.wait ​

Pause for a bounded delay (seconds or until an epoch) before continuing

Overview ​

PropertyValue
Workflow typeLinear
LibraryApp-control
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
secondsintegerNo—Relative delay in seconds (default 0; capped at 86400)
until_epochintegerNo—Absolute unix time to wait until (overrides 'seconds')

Output Schema ​

FieldTypeRequiredDefaultDescription
secondsintegerNo—Relative delay echoed from input.
until_epochintegerNo—Absolute wake time echoed from input.
wait_secondsintegerNo—Resolved bounded delay in seconds.
started_at_epochintegerNo—Unix time when the wait was scheduled.
wake_at_epochintegerNo—Unix time when the resume transition is due.
woke_at_epochintegerNo—Unix time when the scheduled resume completed.
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_stepstringNo——
failed_layerstringNo——
errorstringNo——
error_typestringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—start—
waitingNoNo———
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
pendingstartwaiting—
waitingresumecompleted—
* (any state)failfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "control.flow.wait",
  "initial_data": {
    "seconds": 123,
    "until_epoch": 123
  }
}