runner.execution-restart-cloud-run-generic ​
Restart a generic command execution on Cloud Run
Restart a generic (non-GitHub) Cloud Run execution.
Uses the same schemas and action logic as RunnerExecutionRestartCloudRunWorkflow but skips the getting_registration_token state — generic executions have no GitHub integration and do not need a runner registration token.
Inherits directly from _RestartCloudRunMixin + _BaseCloudRunExecutionWorkflow (NOT from RunnerExecutionRestartCloudRunWorkflow) so that the validator's state-graph reachability check does not pick up GETTING_REGISTRATION_TOKEN from the parent's class attributes.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | App-runners-gcp |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
runner_execution_uuid | uuid | Yes | — | RunnerExecution to restart |
runner_group_uuid | uuid | No | — | Runner group UUID (resolved from execution if omitted) |
organization_uuid | uuid | No | — | Organization UUID (resolved from execution if omitted) |
environment | dict | No | — | Environment variables for the replacement execution (vaulted — persisted state_data holds a [VAULT:...] reference) |
secret_environment | dict | No | — | Env vars bound to Secret Manager refs (secretKeyRef) for the replacement execution |
staged_secret_ids | list | No | — | Ephemeral Secret Manager ids minted for the replacement execution |
command | string | No | — | Command override (generic executions only) |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
runner_execution_uuid | uuid | No | — | RunnerExecution to restart (input reference) |
runner_group_uuid | uuid | No | — | Runner group the execution belongs to |
organization_uuid | uuid | No | — | Organization UUID (resolved from execution if omitted) |
command | string | No | — | Command override (generic executions only) |
environment | dict | No | — | Environment variables for the replacement execution (vaulted — persisted state_data holds a [VAULT:...] reference) |
secret_environment | dict | No | — | Env vars bound to Secret Manager refs (secretKeyRef) for the replacement execution |
staged_secret_ids | list | No | — | Ephemeral Secret Manager ids minted for the replacement execution |
old_runner_execution_uuid | uuid | No | — | Original RunnerExecution that was stopped |
new_runner_execution_uuid | uuid | No | — | Replacement RunnerExecution this workflow created |
provider_execution_id | string | No | — | Cloud Run job execution reference for the replacement |
registration_token | string | No | — | GitHub registration token (when applicable) |
permission_preflight | json | No | — | GCP IAM permission preflight check result |
mirror_tuple | json | No | — | Internal handoff: Cloud Run registry mirror tuple resolved by precheck_mirror and consumed by launch_replacement to rewrite the container image path; null when no mirror rewrite is required |
completed_at | string | No | — | ISO timestamp when restart finalised |
failed_at | string | No | — | ISO timestamp when restart failed |
failure_reason | string | No | — | Populated only when the workflow ends in FAILED |
failure_type | string | No | — | — |
failed_action | string | No | — | — |
failed_at_state | string | No | — | — |
failed_step | string | No | — | — |
failed_layer | string | No | — | — |
error | string | No | — | — |
error_type | string | No | — | — |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
initiated | Yes | No | — | load_execution | — |
launching_replacement | No | No | — | complete | — |
loading_execution | No | No | — | stop_old_execution | — |
prechecking_mirror | No | No | — | precheck_permissions | — |
prechecking_permissions | No | No | — | launch_replacement | — |
stopping_old_execution | No | No | — | precheck_mirror | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
initiated | load_execution | loading_execution | — |
loading_execution | stop_old_execution | stopping_old_execution | — |
stopping_old_execution | precheck_mirror | prechecking_mirror | — |
prechecking_mirror | precheck_permissions | prechecking_permissions | — |
prechecking_permissions | launch_replacement | launching_replacement | — |
launching_replacement | complete | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "runner.execution-restart-cloud-run-generic",
"initial_data": {
"runner_execution_uuid": "value"
}
}