gcp.run.job.execution.describe ​
Describe a Cloud Run job execution (task tallies, completion, conditions).
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 | — | Project override; defaults to the connection's project. |
region | string | Yes | — | Cloud Run region. |
job_name | string | Yes | — | Cloud Run job id owning the execution. |
execution_name | string | Yes | — | Cloud Run execution id. |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
connection_uuid | uuid | No | — | Echoed connection UUID. |
project_id | string | No | — | Effective project id. |
region | string | No | — | Cloud Run region. |
job_name | string | No | — | Cloud Run job id. |
execution_name | string | No | — | Cloud Run execution id. |
exists | boolean | No | — | True when the execution exists (404 returns False, not a failure). |
complete | boolean | No | — | True when completionTime is set. |
running_count | integer | No | — | Tasks currently running. |
succeeded_count | integer | No | — | Tasks that succeeded. |
failed_count | integer | No | — | Tasks that failed. |
cancelled_count | integer | No | — | Tasks cancelled. |
retried_count | integer | No | — | Tasks retried. |
task_count | integer | No | — | Total tasks in the execution. |
start_time | string | No | — | Execution start time. |
completion_time | string | No | — | Execution completion time. |
conditions | json | No | — | Sanitized conditions. |
execution | json | No | — | Sanitized execution resource. |
failure_reason | string | No | — | Human-readable failure reason. |
failed_step | string | No | — | Failed logical step. |
failed_layer | json | No | — | Engine failed layer envelope. |
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 | — | execute | — |
describing | No | No | — | complete | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | execute | describing | — |
describing | complete | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "gcp.run.job.execution.describe",
"initial_data": {
"connection_uuid": "value",
"region": "value",
"job_name": "value",
"execution_name": "value"
}
}