Skip to main content

Wait for job

Suspend until another run ends (success, failed or stopped). A run that is itself suspended is followed to the run that carries it on.

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

Inputs​

InputTypeRequiredDefaultWhat it is
Job IDStringYesThe run's id.
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.
resultDictionaryjob_id, status (success, failed or stopped), outputs and error.