gcp.gke.operation.wait ​
Poll a GKE long-running operation until it reaches DONE or times out.
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; defaults to the connection project. |
location | string | Yes | — | GKE operation region |
operation_name | string | Yes | — | Operation name or full operation resource path. |
timeout_seconds | integer | No | — | Maximum wait duration; implementation default 1800. |
poll_interval_seconds | integer | No | — | Poll interval; implementation default 15. |
fail_on_operation_error | boolean | No | — | Fail when the operation reaches DONE with error details. |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
connection_uuid | uuid | No | — | GCP CloudConnection UUID echoed from input. |
project_id | string | No | — | Effective GCP project. |
authenticated_project_id | string | No | — | Project resolved by credential validation. |
auth_validation | boolean | No | — | True when credential validation succeeded. |
location | string | No | — | GKE operation location. |
operation_name | string | No | — | Operation name or resource path. |
timeout_seconds | integer | No | — | Maximum wait duration; implementation default 1800. |
poll_interval_seconds | integer | No | — | Poll interval; implementation default 15. |
fail_on_operation_error | boolean | No | — | Fail when the operation reaches DONE with error details. |
started_at | string | No | — | ISO timestamp for the first poll. |
last_polled_at | string | No | — | ISO timestamp for the latest poll. |
done | boolean | No | — | True when the operation reached DONE. |
operation_status | string | No | — | Provider operation status. |
status_message | string | No | — | Provider status message |
error_code | string | No | — | Provider operation error code. |
error_message | string | No | — | Provider operation error message. |
target_link | string | No | — | Provider target resource link. |
operation | json | No | — | Sanitized final provider operation response. |
attempts | integer | No | — | Number of poll attempts. |
elapsed_seconds | integer | No | — | Total wait time. |
timed_out | boolean | No | — | True when timeout was reached before DONE. |
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. |
failed_at | string | No | — | ISO failure timestamp. |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | preflight | — |
preflighting | No | No | — | start_wait | — |
waiting | No | No | — | — | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | preflight | preflighting | — |
preflighting | start_wait | waiting | — |
waiting | poll | waiting | — |
waiting | complete | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "gcp.gke.operation.wait",
"initial_data": {
"connection_uuid": "value",
"location": "value",
"operation_name": "value"
}
}