Skip to content
Proud to collaborate with Microsoft for Startups

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 ​

PropertyValue
Workflow typeLinear
LibraryApp-runners-gcp
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
runner_execution_uuiduuidYes—RunnerExecution to restart
runner_group_uuiduuidNo—Runner group UUID (resolved from execution if omitted)
organization_uuiduuidNo—Organization UUID (resolved from execution if omitted)
environmentdictNo—Environment variables for the replacement execution (vaulted — persisted state_data holds a [VAULT:...] reference)
secret_environmentdictNo—Env vars bound to Secret Manager refs (secretKeyRef) for the replacement execution
staged_secret_idslistNo—Ephemeral Secret Manager ids minted for the replacement execution
commandstringNo—Command override (generic executions only)

Output Schema ​

FieldTypeRequiredDefaultDescription
runner_execution_uuiduuidNo—RunnerExecution to restart (input reference)
runner_group_uuiduuidNo—Runner group the execution belongs to
organization_uuiduuidNo—Organization UUID (resolved from execution if omitted)
commandstringNo—Command override (generic executions only)
environmentdictNo—Environment variables for the replacement execution (vaulted — persisted state_data holds a [VAULT:...] reference)
secret_environmentdictNo—Env vars bound to Secret Manager refs (secretKeyRef) for the replacement execution
staged_secret_idslistNo—Ephemeral Secret Manager ids minted for the replacement execution
old_runner_execution_uuiduuidNo—Original RunnerExecution that was stopped
new_runner_execution_uuiduuidNo—Replacement RunnerExecution this workflow created
provider_execution_idstringNo—Cloud Run job execution reference for the replacement
registration_tokenstringNo—GitHub registration token (when applicable)
permission_preflightjsonNo—GCP IAM permission preflight check result
mirror_tuplejsonNo—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_atstringNo—ISO timestamp when restart finalised
failed_atstringNo—ISO timestamp when restart failed
failure_reasonstringNo—Populated only when the workflow ends in FAILED
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_stepstringNo——
failed_layerstringNo——
errorstringNo——
error_typestringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
initiatedYesNo—load_execution—
launching_replacementNoNo—complete—
loading_executionNoNo—stop_old_execution—
prechecking_mirrorNoNo—precheck_permissions—
prechecking_permissionsNoNo—launch_replacement—
stopping_old_executionNoNo—precheck_mirror—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
initiatedload_executionloading_execution—
loading_executionstop_old_executionstopping_old_execution—
stopping_old_executionprecheck_mirrorprechecking_mirror—
prechecking_mirrorprecheck_permissionsprechecking_permissions—
prechecking_permissionslaunch_replacementlaunching_replacement—
launching_replacementcompletecompleted—
* (any state)failfailed—

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