runner.execution-restart-mgc-vm ​
Restart a runner execution on a Magalu Cloud VM
Overview ​
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | App-runners-mgc |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
runner_execution_uuid | uuid | Yes | — | Execution UUID to restart |
runner_group_uuid | uuid | No | — | Runner group UUID |
organization_uuid | uuid | No | — | Organization UUID |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
runner_group_uuid | uuid | Yes | — | Runner group UUID |
old_runner_execution_uuid | uuid | Yes | — | Stopped execution UUID |
new_runner_execution_uuid | uuid | No | — | Replacement execution UUID |
provider_execution_ref | string | No | — | Magalu VM instance reference |
completed_at | string | No | — | ISO-8601 completion timestamp |
failed_at | string | No | — | ISO-8601 failure timestamp |
failure_reason | string | No | — | Failure reason on terminal failure |
failure_type | string | No | — | Failure type |
failed_action | string | No | — | Action that failed |
failed_at_state | string | No | — | State where failure occurred |
failed_step | string | No | — | Step that failed |
failed_layer | string | No | — | Layer where failure occurred |
error | string | No | — | Error message |
error_type | string | No | — | Error type |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
initiated | Yes | No | — | load_execution | — |
getting_registration_token | No | No | — | launch_replacement | — |
launching_replacement | No | No | — | complete | — |
loading_execution | No | No | — | stop_old_execution | — |
stopping_old_execution | No | No | — | get_registration_token | — |
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 | get_registration_token | getting_registration_token | — |
getting_registration_token | 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-mgc-vm",
"initial_data": {
"runner_execution_uuid": "value"
}
}