Skip to content
Proud to collaborate with Microsoft for Startups

gcp.run.service.wait-ready ​

Poll a Cloud Run service until the target revision is ready or timeout occurs.

Overview ​

PropertyValue
Workflow typeLinear
LibraryBase-gcp
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
connection_uuiduuidYes—GCP CloudConnection UUID.
project_idstringNo—GCP project override.
regionstringYes—Cloud Run region.
service_namestringYes—Cloud Run service id.
target_revisionstringNo—Revision expected to become ready.
poll_interval_secondsintegerNo—Poll interval.
timeout_secondsintegerNo—Maximum wait time.

Output Schema ​

FieldTypeRequiredDefaultDescription
connection_uuiduuidNo—Echoed connection UUID.
project_idstringNo—Effective project.
regionstringNo—Cloud Run region.
service_namestringNo—Cloud Run service id.
readybooleanNo—True when service and target revision are ready.
latest_ready_revisionstringNo—Latest ready revision.
target_revisionstringNo—Revision waited for.
service_urlstringNo—Service URI.
conditionsjsonNo—Sanitized service conditions.
poll_interval_secondsintegerNo—Echoed poll interval.
timeout_secondsintegerNo—Echoed maximum wait time.
failure_reasonstringNo—Human-readable failure reason.
failed_stepstringNo—Failed logical step.
failed_layerjsonNo—Engine failed layer.
failed_at_statestringNo—State where failure occurred.
errorstringNo—Error message.
error_typestringNo—Error class.

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—poll—
pollingNoNo—complete—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
pendingpollpolling—
pollingpollpolling—
pollingcompletecompleted—
* (any state)failfailed—

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"
  }
}