Skip to main content

Suspend until

Suspend the agent until something happens, then carry on from this step in a new run with the same values. The run shows as Suspended and its runner is free while it waits. Not inside a loop, a Parallel block, a Catch or a Finally; close browsers, workbooks and files first.

Command in the Long-running agents toolkit · id ooa.longrunning/suspend_until · 5 inputs (2 required), 3 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
KindStringYesWhat to wait for: time, a Task inbox task, a work item, another run (job), or a callback URL being called.
RefStringYestime: seconds from now or a date and time with its offset (2026-11-07T09:00:00+05:30); task: the task id; queue_item: the work item id; job: the run id; callback: the callback id.
Timeout (seconds)NumberNoStop waiting after this many seconds; wait as long as it takes when empty.
On timeoutStringNoerrorerror: the step fails with LONGRUN.TIMEOUT (catch it in a Try); continue: carry on with Timed out true.
PoolStringNoCarry on on any runner of this pool (name or id); on the same runner when empty.

Outputs​

OutputTypeWhat it is
resumed_byStringresumed_by: what ended the wait (time, task, queue_item, job, callback, admin or timeout).
timed_outBooleanTrue when the timeout ended the wait (with On timeout set to continue).
resultDictionaryWhat ended the wait: the callback's JSON body; a task's status, outcome, result and completed_by; a work item's status, result and error; a run's status, outputs and error. Empty for a time or a timeout.