Legacy Use icon

Legacy Use

Interact with the Legacy Use API

Actions4

Job → Wait

AI-generated

Summary

Wait for the completion of an existing job by specifying its Job ID and associated Target ID, polling the job's status until it finishes or a polling limit is reached.

Inputs

  • Target Name or ID (required) — Select the target by name or ID where the job was initiated.
  • Job ID (required) — Specify the ID of the job to wait for completion.
  • Advanced Options (optional) — Configure polling behavior with 'Poll Delay (Ms)' to set the interval between status checks (default 2000 ms) and 'Poll Limit' to set the maximum number of polling attempts (default 300).

Output shape

a single record

Returns the job's ID, final status, and either the job result upon success or error details if the job failed or if the polling limit is reached.

Examples

Example 1: Waiting for job completion

Specify the Target ID and Job ID to poll until the job's status changes from 'pending', 'queued', or 'running' to a terminal state or the polling limit is exceeded.

Discussion