wait_until_completed
Monitor Code Ocean computations until they finish or fail, with adjustable polling intervals and timeout controls for reliable workflow management.
Instructions
Poll a computation until it reaches 'Completed' or 'Failed' state with configurable timing.
Args: computation: The computation object to monitor polling_interval: Time between status checks in seconds (minimum 5 seconds) timeout: Maximum time to wait in seconds, or None for no timeout
Returns: Updated computation object once completed or failed
Raises: ValueError: If polling_interval < 5 or timeout constraints are violated TimeoutError: If computation doesn't complete within the timeout period
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| computation_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| name | Yes | ||
| state | Yes | ||
| created | Yes | ||
| run_time | Yes | ||
| exit_code | No | ||
| processes | No | ||
| end_status | No | ||
| parameters | No | ||
| data_assets | No | ||
| has_results | No | ||
| nextflow_profile | No | ||
| cloud_workstation | No |