compute_result
Retrieve the result of a Compute task by providing the task ID. Optionally, set a timeout in seconds to wait for completion.
Instructions
Get the result of a Compute task.
Without a timeout, this does a single non-blocking check. With a timeout, it polls with exponential backoff until the task completes or the timeout is reached.
Args: task_id: UUID of the task. timeout: Maximum seconds to wait. If None, checks once without blocking.
Returns: Dict with 'status' ('success', 'failed', or 'pending') and either 'result' (the function's return value) or 'exception'.
Examples: compute_result("task-uuid") compute_result("task-uuid", timeout=300)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes | ||
| timeout | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||