WaveSpeed Task Status icon

WaveSpeed Task Status

Query and manage WaveSpeed AI task status

Wait for Completion

AI-generated

Summary

Wait for a WaveSpeed task to complete and return its result

Inputs

  • taskId (required) — The ID of the task to query
  • pollingOptions — Options controlling the wait behavior, including max wait time, poll interval, and max retries

Output shape

array of objects containing success flag, operation identifier, and the task data returned by WaveSpeed

Each item represents the result of a single input record; errors are thrown as NodeOperationError and do not produce a result object

Examples

Example 1: Wait for task completion with default polling settings

operation = waitForCompletion, provide taskId, leave pollingOptions at defaults (30 min max wait, 10 s interval, 20 retries)

Example 2: Custom timeout and interval for faster feedback

operation = waitForCompletion, taskId supplied, pollingOptions set to maxWaitTime=5, pollInterval=2, maxRetries=10

Example 3: Fail gracefully when task does not complete within limits

operation = waitForCompletion, taskId provided, pollingOptions adjusted to lower maxWaitTime to 1 min to abort quickly

Discussion