Skip to content
Proud to collaborate with Microsoft for Startups

runner.dispatch-from-job-queued ​

Select an active runner group whose labels cover the job's runner_labels and start runner.execution-launch-* on it; respects max_count.

Pick a matching runner group for a queued GH job and launch one runner.

Overview ​

PropertyValue
Workflow typeLinear
LibraryApp-runners
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes—UUID of the caller's organization, injected server-side from the authenticated request; scopes the operation to the correct tenant.
repository_full_namestringYes——
runner_labelslistYes——
github_job_refintegerNo——
github_workflow_run_refintegerNo——
actor_uuiduuidNo—UUID of the user or service actor who triggered this action, injected server-side from the authenticated request; used for audit/attribution only. Omitted for system/webhook-triggered dispatches with no human actor.

Output Schema ​

FieldTypeRequiredDefaultDescription
runner_group_uuiduuidNo—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_uuiduuidNo—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_uuiduuidNo—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_uuidstringNo—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.
statusstringNo——
outcomestringNo——
initiated_atstringNo——
completed_atstringNo——
failed_atstringNo——
failure_reasonstringNo——
errorstringNo——
error_typestringNo——
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. Optional — omitted for system or service-triggered actions with no human actor.
reasonstringNo——
workflow_run_uuidstringNo—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_countintegerNo——
retried_fromstringNo——
failed_stepjsonNo——
failed_layerjsonNo——
failed_at_statejsonNo——
compensation_triggerjsonNo——
comp_current_layerjsonNo——
comp_queuejsonNo——
comp_retry_countjsonNo——
repository_full_namestringNo——
runner_labelslistNo——
requested_labelslistNo——
matched_runner_group_uuiduuidNo—UUID of the RunnerGroup matched to this queued job's labels, echoed on output when a match is found.
active_execution_countintegerNo——
reconciled_executionsintegerNo——
max_countintegerNo——
launched_workflow_uuidstringNo—Engine-stamped run id of the runner.execution-launch-* workflow started by this dispatch, when one was launched (legacy direct-launch backends only); not a business entity reference.
launched_workflow_typestringNo——
github_job_refintegerNo——
github_workflow_run_refintegerNo——
queued_demand_hintjsonNo——
reconcile_workflow_uuidstringNo—Deterministic workflow_id used to debounce the per-group pool-reconcile trigger for this dispatch, set only on the controller-handoff path; a locally constructed idempotency key, not a stored entity reference.

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—match—
matchingNoNo—launch—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
pendingmatchmatching—
matchinglaunchcompleted—
* (any state)failfailed—

API Usage ​

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

{
  "workflow_type": "runner.dispatch-from-job-queued",
  "initial_data": {
    "organization_uuid": "value",
    "repository_full_name": "value",
    "runner_labels": "value"
  }
}