Understand execution state
The lightweight execution list reports the state of each run:
Use
GET /api/executions/list for a summary view and GET /api/executions/:id when you need logs and the result payload.
Poll for completion
A simple worker can list recent executions and fetch the detail for a specific execution:Stream live updates
The REST API exposes a server-sent events endpoint atGET /api/executions/stream for clients that need live execution updates. Use an SSE-compatible client to keep a connection open and process events as they arrive.
This is useful for an operations dashboard or an interface that shows a Task’s progress without repeatedly requesting the full execution record.
Retrieve a full result
Large persisted results can be trimmed from an execution history record. When that happens, the record is marked withtruncated: true and hasFullResult: true.
Request the complete result with:
Stop an execution
Stop a running execution or cancel one that is still queued:400 MISSING_RUN_ID when runId is missing.
Handle capacity and timeout responses
Execution requests can fail when resource protection is active:
For
503 responses, use the retryAfterMs response value and Retry-After header to decide when to retry.
See REST API Reference for the complete execution endpoint details.