Wait for Job Execution
cloud_run.wait_execution
ActionGoogle Cloudconnection required
Polls GET /v2/{operation} for the execution, then the execution itself, until completionTime is set or the timeout is reached.
Poll a Cloud Run job execution until it finishes, then report the result.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- OAuth 2.0
- Providers
- Google Cloud Run
- Secret shape
- {"client_id", "client_secret", "refresh_token"}
- Config it needs
- project_id, region
- Resolved by
- config.connection_id, else node.connection_id
Configuration
8 fields, none required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
project_id GCP project id (overrides connection). | string | No | — | — | — |
region Cloud Run region (overrides connection). | string | No | us-central1 | — | — |
operation Operation name from cloud_run.run_job. Defaults to the upstream step's `operation`. | string | No | — | — | — |
job Job name — only needed with a short `execution` name. | string | No | — | — | — |
execution Wait on this execution instead of an operation. | string | No | — | — | — |
timeout_seconds How long to wait in total (1-900). | number | No | 300 | ≥ 0 | — |
poll_interval_seconds Seconds between polls (min 1). | number | No | 5 | ≥ 0 | — |
fail_on_job_failure Fail this step when the execution reports failed tasks. | boolean | No | true | — | — |
Example configuration
Every value below is the contract’s own example or default — nothing invented.
{
"fail_on_job_failure": true,
"poll_interval_seconds": 5,
"region": "us-central1",
"timeout_seconds": 300
}Input
Output of cloud_run.run_job; either key is used when the config leaves it blank.
| Field | Type | Example |
|---|---|---|
operation Operation name, as emitted by cloud_run.run_job. | string | — |
execution_name Execution name, when the operation is not known. | string | — |
Output
One shape.
result
| Field | Type | Example |
|---|---|---|
ok | boolean | — |
execution | string | — |
state CONDITION_SUCCEEDED / CONDITION_FAILED / … | string | — |
succeeded | number | — |
failed | number | — |
task_count | number | — |
completion_time | string | — |
message Cloud Run's own reason when it failed. | string | — |
log_uri | string | — |
waited_seconds | number | — |
{
"completion_time": "",
"execution": "",
"failed": 0,
"log_uri": "",
"message": "",
"ok": false,
"state": "",
"succeeded": 0,
"task_count": 0,
"waited_seconds": 0
}Notes
- Holds a worker thread for the whole wait — keep the timeout tight.
Related Google Cloud Run nodes
See Wait for Job Execution run in a workflow.
In a technical demo we add the Google Cloud Run connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.