Skip to content
Proud to collaborate with Microsoft for Startups

runner.stop_active_executions_ec2 ​

Check for active executions before EC2 environment deletion

Guard step: fail if there are active executions for this runner group.

Active executions must be stopped before the environment can be deleted — terminating the ASG while tasks are running would leave the runner group in an inconsistent state. Callers should stop all executions first.

config.force_delete (default False): if True, skip this check and proceed.

Overview ​

PropertyValue
Workflow typeLinear
LibraryApp-runners-aws
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
runner_group_uuiduuidYes—UUID of the RunnerGroup this EC2 environment step operates on, picked from the organization's list of runner groups.
organization_uuiduuidNo—UUID of the caller's organization, injected server-side from the authenticated request; scopes the operation to the correct tenant.
workflow_run_idstringNo——
workflow_run_uuidstringNo—Internal engine correlation/run identifier stamped onto this DAG-step execution; not a user-facing entity reference and has no picker.

Output Schema ​

FieldTypeRequiredDefaultDescription
runner_group_uuiduuidNo—UUID of the RunnerGroup this workflow operates on, picked from the organization's list of runner groups. Optional on this shared passthrough schema because the same field also appears as an output-only echo.
organization_uuiduuidNo—UUID of the caller's organization, injected server-side from the authenticated request; scopes the operation to the correct tenant.
registry_account_uuiduuidNo—UUID of the container registry account this runner group resolves images against, picked from the organization's registry accounts. Optional — falls back to default/unauthenticated image resolution when absent.
actor_uuiduuidNo—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.
workflow_run_idstringNo——
workflow_run_uuidstringNo—Legacy alias of workflow_run_id: an internal engine correlation/run identifier for this DAG execution (ADR-015/E1 plumbing), not a foreign key to any business entity. No list/query workflow applies — this is engine-generated, never user-supplied.
workflow_uuidstringNo—Engine workflow-run identifier associated with this record; not a platform entity foreign key despite the name. No list/query workflow applies — this is engine-generated, never user-supplied.
statusstringNo——
outcomestringNo——
initiated_atstringNo——
completed_atstringNo——
failed_atstringNo——
failure_reasonstringNo——
errorstringNo——
error_typestringNo——
reasonstringNo——
failed_stepjsonNo——
failed_layerjsonNo——
failed_at_statejsonNo——
compensation_triggerjsonNo——
comp_current_layerjsonNo——
comp_queuejsonNo——
comp_retry_countjsonNo——
primitive_inputjsonNo——
primitive_outputjsonNo——
step_outputjsonNo——
backend_typejsonNo——
cloud_connection_uuidjsonNo—UUID of the CloudConnection backing this runner group's cloud backend, picked from the organization's connections.
regionjsonNo——
vpc_refjsonNo——
subnet_refsjsonNo——
security_group_refsjsonNo——
instance_typejsonNo——
cluster_namejsonNo——
cluster_arnjsonNo——
log_group_namejsonNo——
task_definition_arnjsonNo——
task_definition_revisionjsonNo——
asg_namejsonNo——
capacity_provider_namejsonNo——
active_executions_countjsonNo——
active_executions_skippedjsonNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
initiatedYesNo—run—
runNoNo—complete—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
initiatedrunrun—
runcompletecompleted—
* (any state)failfailed—

API Usage ​

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

{
  "workflow_type": "runner.stop_active_executions_ec2",
  "initial_data": {
    "runner_group_uuid": "value"
  }
}