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
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Kind | String | Yes | What to wait for: time, a Task inbox task, a work item, another run (job), or a callback URL being called. | |
| Ref | String | Yes | time: 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) | Number | No | Stop waiting after this many seconds; wait as long as it takes when empty. | |
| On timeout | String | No | error | error: the step fails with LONGRUN.TIMEOUT (catch it in a Try); continue: carry on with Timed out true. |
| Pool | String | No | Carry on on any runner of this pool (name or id); on the same runner when empty. |
Outputs
| Output | Type | What it is |
|---|---|---|
| resumed_by | String | resumed_by: what ended the wait (time, task, queue_item, job, callback, admin or timeout). |
| timed_out | Boolean | True when the timeout ended the wait (with On timeout set to continue). |
| result | Dictionary | What 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. |