wait_until_ready
Monitor a data asset's status until it becomes ready or fails, with configurable polling intervals and optional timeout settings.
Instructions
Poll a data asset until it reaches 'Ready' or 'Failed' state with configurable timing.
Args: data_asset: The data asset 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 data asset object once ready or failed
Raises:
ValueError: If polling_interval < 5 or timeout constraints are violated
TimeoutError: If data asset doesn't become ready within timeout period
Poll until the specified data asset becomes ready before performing further operations (e.g., downloading files). You can set polling_interval and optional timeout.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data_asset | Yes | ||
| polling_interval | No | ||
| timeout | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| name | Yes | ||
| size | No | ||
| tags | No | ||
| type | Yes | ||
| files | No | ||
| mount | Yes | ||
| state | Yes | ||
| created | Yes | ||
| last_used | Yes | ||
| provenance | No | ||
| description | No | ||
| source_bucket | No | ||
| app_parameters | No | ||
| failure_reason | No | ||
| transfer_error | No | ||
| custom_metadata | No | ||
| last_transferred | No | ||
| nextflow_profile | No | ||
| contained_data_assets | No |