List Jobs

cloud_run.list_jobs
ActionGoogle Cloudconnection required

Calls Cloud Run Admin API v2 GET /projects/{p}/locations/{r}/jobs.

List Cloud Run jobs in a region.

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

3 fields, none required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.

FieldTypeRequiredDefaultConstraintsExample
project_id
GCP project id (overrides connection).
stringNo———
region
Cloud Run region (overrides connection).
stringNous-central1——
page_size
Max jobs to return.
numberNo50≥ 1—

Example configuration

Every value below is the contract’s own example or default — nothing invented.

{
  "page_size": 50,
  "region": "us-central1"
}

Output

One shape.

result

FieldTypeExample
ok
boolean—
jobs
array—
count
number—
jobs[].name
Full projects/…/jobs/… resource name.
string—
jobs[].job
Short job name.
string—
jobs[].execution_count
Executions ever started.
number—
jobs[].create_time
string—
jobs[].update_time
string—
jobs[].state
The job's terminal condition state.
string—
jobs[].message
Why the job is not ready, if it isn't.
string—
jobs[].labels
object—
jobs[].latest_execution
Short name of the last run.
string—
jobs[].latest_execution_name
Full execution name — wire this into cloud_run.wait_execution.
string—
jobs[].latest_execution_status
Raw Cloud Run status: EXECUTION_SUCCEEDED / EXECUTION_FAILED / EXECUTION_CANCELLED once the run is over, EXECUTION_RUNNING or EXECUTION_PENDING while it is still going, null only when the job has never run.
string—
jobs[].latest_execution_running
True while the last run is still in flight — branch on this rather than comparing the status to null.
boolean—
jobs[].latest_execution_create_time
string—
jobs[].latest_execution_completion_time
string—
{
  "count": 0,
  "jobs": [
    {
      "create_time": "",
      "execution_count": 0,
      "job": "",
      "labels": {},
      "latest_execution": "",
      "latest_execution_completion_time": "",
      "latest_execution_create_time": "",
      "latest_execution_name": "",
      "latest_execution_running": false,
      "latest_execution_status": "",
      "message": "",
      "name": "",
      "state": "",
      "update_time": ""
    }
  ],
  "ok": false
}

Notes

  • Branch on `latest_execution_status`, not `execution_count` — the counter increments the same whether last night's run succeeded or failed.
  • An in-flight run reports EXECUTION_RUNNING / EXECUTION_PENDING, not null, so alert on `latest_execution_status == 'EXECUTION_FAILED'` (or on `latest_execution_running == false`) rather than on `!= 'EXECUTION_SUCCEEDED'`, which pages on healthy running jobs.

See List Jobs 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.