runner.pool-sweep-ec2-vm
[DEPRECATED — superseded by runner.pool-reconcile-ec2-vm (ADR-017, P5.T3)] Legacy periodic reconciliation for warm-pool runner groups on EC2: cloud state, provisioning timeout, age cap, idle TTL, GitHub heartbeat, orphan cleanup, drained-instance termination, scale-check top-up. No longer scheduled by any cron; remains in the registry only so in-flight calls finish. New code must use runner.pool-reconcile-ec2-vm.
Per-group warm-pool reconciliation sweep.
Overview
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-runners-aws |
| Version | 1.0 |
Input Schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
runner_group_uuid | uuid | Yes | — | UUID of the RunnerGroup this sweep operates on, picked from the organization's list of runner groups. |
Output Schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
runner_group_uuid | uuid | No | — | UUID of the RunnerGroup this sweep operated on, echoed from input. |
warm_pool_enabled | boolean | No | — | — |
cloud_reconciled_failed | integer | No | — | — |
provisioning_timed_out | integer | No | — | — |
aged_out | integer | No | — | — |
idle_ttl_drained | integer | No | — | — |
heartbeat_failed | integer | No | — | — |
github_orphans_deregistered | integer | No | — | — |
terminations_started | integer | No | — | — |
scale_check_started | boolean | No | — | — |
step_errors | list | No | — | — |
outcome | string | No | — | — |
status | string | No | — | — |
completed_at | string | No | — | — |
failure_reason | string | No | — | — |
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 |
|---|---|---|---|---|---|
pending | Yes | No | — | sweep | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram
Transitions
| From | Action | To | Description |
|---|---|---|---|
pending | sweep | completed | — |
* (any state) | fail | failed | — |
API Usage
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "runner.pool-sweep-ec2-vm",
"initial_data": {
"runner_group_uuid": "value"
}
}