gcp.sql.operation.wait ​
Poll a Cloud SQL operation until DONE.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | Base-gcp |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
connection_uuid | uuid | Yes | — | GCP CloudConnection UUID. |
project_id | string | No | — | GCP project override. |
operation_name | string | Yes | — | Cloud SQL operation name. |
poll_interval_seconds | integer | No | — | Poll interval. |
timeout_seconds | integer | No | — | Maximum wait time. |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
connection_uuid | uuid | No | — | Echoed connection UUID. |
project_id | string | No | — | Effective project. |
operation_name | string | No | — | Cloud SQL operation name. |
poll_interval_seconds | integer | No | — | Poll interval. |
timeout_seconds | integer | No | — | Maximum wait time. |
status | string | No | — | Latest operation status. |
operation_type | string | No | — | Operation type. |
target_id | string | No | — | Operation target id. |
error_details | json | No | — | Provider operation error details. |
operation | json | No | — | Sanitized operation response. |
failure_reason | string | No | — | Human-readable failure reason. |
failed_step | string | No | — | Failed logical step. |
failed_layer | json | No | — | Engine failed layer. |
failed_at_state | string | No | — | State where failure occurred. |
error | string | No | — | Error message. |
error_type | string | No | — | Error class. |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | poll | — |
polling | No | No | — | complete | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | poll | polling | — |
polling | poll | polling | — |
polling | complete | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "gcp.sql.operation.wait",
"initial_data": {
"connection_uuid": "value",
"operation_name": "value"
}
}