runner.group-deletion ​
Deletes all infrastructure for a runner group
Delete a runner group: deregister GitHub runners → per-backend cloud teardown → soft-delete row.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Dag |
| Library | App-runners |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
runner_group_uuid | uuid | Yes | — | UUID of the RunnerGroup this action operates on, picked from the organization's list of runner groups. |
organization_uuid | uuid | Yes | — | UUID of the caller's organization, injected server-side from the authenticated request; scopes the operation to the correct tenant. |
actor_uuid | uuid | No | — | UUID of the user or service actor who triggered this action, injected server-side from the authenticated request; used for audit/attribution only. |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
runner_group_uuid | uuid | No | — | UUID of the RunnerGroup this action operates on, picked from the organization's list of runner groups; echoed on output alongside terminal/error payloads. |
organization_uuid | uuid | No | — | UUID of the caller's organization, injected server-side from the authenticated request; scopes the operation to the correct tenant. Echoed on output alongside terminal/error payloads. |
runner_execution_uuid | uuid | No | — | UUID of the RunnerExecution this action operates on, picked from the organization's (optionally group-scoped) list of executions; echoed on output alongside terminal/error payloads. |
workflow_uuid | string | No | — | Engine workflow-run identifier (or, for GitHub-Actions-triggered flows, an external GitHub Actions run id) associated with this record; not a platform entity foreign key despite the name. No source is attached since there is no list/query workflow for an internal run id. |
status | string | No | — | — |
outcome | string | No | — | — |
initiated_at | string | No | — | — |
completed_at | string | No | — | — |
failed_at | string | No | — | — |
failure_reason | string | No | — | — |
error | string | No | — | — |
error_type | string | No | — | — |
actor_uuid | uuid | No | — | UUID of the user or service actor who triggered this action, injected server-side from the authenticated request when available; used for audit/attribution only. Optional — omitted for system or service-triggered actions with no human actor. |
reason | string | No | — | — |
workflow_run_uuid | string | No | — | Engine-stamped correlation/run id for this DAG execution (ADR-015/E1 plumbing), written into state_data by action_start; not a foreign key to any business entity. No source is attached since there is no list/query workflow for an internal run id. |
retry_count | integer | No | — | — |
retried_from | string | No | — | — |
failed_step | json | No | — | — |
failed_layer | json | No | — | — |
failed_at_state | json | No | — | — |
compensation_trigger | json | No | — | — |
comp_current_layer | json | No | — | — |
comp_queue | json | No | — | — |
comp_retry_count | json | No | — | — |
backend_type | string | No | — | — |
runners_deregistered | integer | No | — | — |
deleted_at | string | No | — | — |
deregister | json | No | — | — |
env_delete_fargate | json | No | — | — |
env_delete_ec2 | json | No | — | — |
env_delete_gce | json | No | — | — |
env_delete_cloud_run | json | No | — | — |
env_delete_kubernetes | json | No | — | — |
env_delete_eks | json | No | — | — |
env_delete_azure_container_apps | json | No | — | — |
env_delete_do_app_job | json | No | — | — |
finalize_group_deletion | json | No | — | — |
DAG Layers ​
| # | Layer | Steps | Compensation |
|---|---|---|---|
| 1 | prepare | runner.group-deletion.deregister | — |
| 2 | delete_environment | runner.environment-deletion, runner.environment-deletion-ec2, runner.environment-deletion-gcp, runner.environment-deletion-cloud-run, runner.environment-deletion-kubernetes, runner.environment-deletion-kubernetes, runner.environment-deletion-azure-container-apps, runner.environment-deletion-do-app-job | — |
| 3 | finalize | runner.group-deletion.finalize | — |
Execution Flow ​
Sub-workflows ​
| Sub-workflow | Step name |
|---|---|
runner.group-deletion.deregister | deregister |
runner.environment-deletion | env_delete_fargate |
runner.environment-deletion-ec2 | env_delete_ec2 |
runner.environment-deletion-gcp | env_delete_gce |
runner.environment-deletion-cloud-run | env_delete_cloud_run |
runner.environment-deletion-kubernetes | env_delete_kubernetes |
runner.environment-deletion-azure-container-apps | env_delete_azure_container_apps |
runner.environment-deletion-do-app-job | env_delete_do_app_job |
runner.group-deletion.finalize | finalize_group_deletion |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "runner.group-deletion",
"initial_data": {
"runner_group_uuid": "value",
"organization_uuid": "value"
}
}