Skip to main content

Wait for callback

Suspend until the callback URL made by Create callback URL is called; its JSON body comes back as Result. A call that came before this step is not lost.

Command in the Long-running agents toolkit · id ooa.longrunning/wait_for_callback · 4 inputs (1 required), 3 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
Callback IDStringYesFrom Create callback URL.
Timeout (seconds)NumberNoStop waiting after this many seconds; wait as long as it takes when empty.
On timeoutStringNoerrorerror: fail with LONGRUN.TIMEOUT; continue: carry on with Timed out true.
PoolStringNoCarry on on any runner of this pool; 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.
resultDictionaryThe JSON body the caller posted (a value that is not an object comes as {"value": ...}).