gcp.run.service.wait-ready ​
Poll a Cloud Run service until the target revision is ready or timeout occurs.
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. |
region | string | Yes | — | Cloud Run region. |
service_name | string | Yes | — | Cloud Run service id. |
target_revision | string | No | — | Revision expected to become ready. |
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. |
region | string | No | — | Cloud Run region. |
service_name | string | No | — | Cloud Run service id. |
ready | boolean | No | — | True when service and target revision are ready. |
latest_ready_revision | string | No | — | Latest ready revision. |
target_revision | string | No | — | Revision waited for. |
service_url | string | No | — | Service URI. |
conditions | json | No | — | Sanitized service conditions. |
poll_interval_seconds | integer | No | — | Echoed poll interval. |
timeout_seconds | integer | No | — | Echoed maximum wait time. |
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.run.service.wait-ready",
"initial_data": {
"connection_uuid": "value",
"region": "value",
"service_name": "value"
}
}