Skip to content
Proud to collaborate with Microsoft for Startups

runner.execution-restart-mgc-vm ​

Restart a runner execution on a Magalu Cloud VM

Overview ​

PropertyValue
Workflow typeLinear
LibraryApp-runners-mgc
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
runner_execution_uuiduuidYes—Execution UUID to restart
runner_group_uuiduuidNo—Runner group UUID
organization_uuiduuidNo—Organization UUID

Output Schema ​

FieldTypeRequiredDefaultDescription
runner_group_uuiduuidYes—Runner group UUID
old_runner_execution_uuiduuidYes—Stopped execution UUID
new_runner_execution_uuiduuidNo—Replacement execution UUID
provider_execution_refstringNo—Magalu VM instance reference
completed_atstringNo—ISO-8601 completion timestamp
failed_atstringNo—ISO-8601 failure timestamp
failure_reasonstringNo—Failure reason on terminal failure
failure_typestringNo—Failure type
failed_actionstringNo—Action that failed
failed_at_statestringNo—State where failure occurred
failed_stepstringNo—Step that failed
failed_layerstringNo—Layer where failure occurred
errorstringNo—Error message
error_typestringNo—Error type

States ​

StateInitialTerminalSuccessAuto-advanceDescription
initiatedYesNo—load_execution—
getting_registration_tokenNoNo—launch_replacement—
launching_replacementNoNo—complete—
loading_executionNoNo—stop_old_execution—
stopping_old_executionNoNo—get_registration_token—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
initiatedload_executionloading_execution—
loading_executionstop_old_executionstopping_old_execution—
stopping_old_executionget_registration_tokengetting_registration_token—
getting_registration_tokenlaunch_replacementlaunching_replacement—
launching_replacementcompletecompleted—
* (any state)failfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "runner.execution-restart-mgc-vm",
  "initial_data": {
    "runner_execution_uuid": "value"
  }
}