Steer & monitor runners
Once you have more than one runner (see Set up a runner securely), you steer which runner gets which work. Every lever here is off by default — a fleet with none of them set dispatches “first online runner that can run the image”, so you opt into exactly the complexity you need. The one exception is the placement policy: it is always in force, and its built-in default keeps label-less work exactly as it was.


Labels & capabilities (routing)
Section titled “Labels & capabilities (routing)”A runner advertises capabilities at registration (and you can re-register or
rotate to change them). Beyond images, advertise free-form labels:
{ "images": ["unified"], "labels": ["gpu", "eu-west"], "max_parallel": 4 }A task that requires labels is sent only to a runner advertising all of them
(subset match, like CI runs-on). A task with no required labels ignores labels
entirely — so adding labels never changes routing for existing work. (Taints do:
see below.)
Labels are case-insensitive. They are lowercased wherever they are written — task
config, worker groups, grants, a runner’s labels and taints — and compared in
lowercase, so a task requiring Unity matches a runner labelled unity.
Placement policy and taints
Section titled “Placement policy and taints”Whenever hub mode is on and no runner is eligible for a task — none advertises its labels, or every candidate is busy, cordoned, draining, stale, excluded by its grant or by a taint — the task’s placement policy decides what happens. The hub never takes the work over silently.
on_no_runner |
What happens |
|---|---|
queue |
The task waits for a runner in the starting lifecycle state, shown as Waiting for runner (labels). The first runner that becomes eligible claims it; nothing runs on the hub. After queue_timeout_minutes (default 120) the task fails with no_runner_timeout, and a backlog item it belongs to is re-queued rather than blocked, with a notification. |
fail |
The launch is refused with 409 and the code no_eligible_runner, naming the required labels and, for each runner, why it was rejected (offline, busy, cordoned, draining, stale, grant, labels or taint). |
local |
The task runs on the hub as before, but the fallback is recorded: a placement_fallback_local task event carrying the per-runner reasons, and an amber Hub fallback badge on the task page. |
The policy resolves first-non-null, the most specific level winning:
- the task’s
config.runner.on_no_runner; - the workflow stage’s
runner.on_no_runner(agent node config, or the stage entry of an automation’spipeline_config); - the agent profile’s placement policy (the profile’s own
placement_policyfield, set in the profile’s Raw editor, over the Management API or with the MCPprofile.create/profile.updatetools; empty inherits); - the project’s placement policy (set next to the project’s worker groups: the no-runner behaviour, or inherit, and the queue timeout);
- the workspace default placement policy;
- the built-in:
localfor a task that requires no labels,queuefor a task that requires any label.
The built-in keeps ordinary, label-less work exactly where it ran before, while work bound to a tool — Unity, Blender, a GPU — can no longer land on the hub, where it would fail or, worse, “pass” without the tool. A profile, project or workspace policy is the same small object:
{ "on_no_runner": "queue", "queue_timeout_minutes": 240 }A queued task holds its backlog concurrency slot while it waits; the Waiting for
runner badge makes that bottleneck visible. GET /api/runners/queue lists the
workspace’s waiting work per label set — [{required_labels, count, waiting_tasks}],
where every entry of waiting_tasks carries the task’s task_id, title,
workspace_id, whether the hub already bound it to a runner (runner_bound) and
waited_seconds. A task listed there has an assignment no runner has claimed yet,
whether it is still unbound (any eligible runner may take it) or already placed on a
runner that has not polled (a pin, an offline runner, or one at its parallel cap). At
most the 200 oldest waiting tasks are listed. The MCP tool capacity.get reports the
unbound label demand as unbound_queue.
While a task waits, its card reads Waiting for runner instead of the bare Starting and returns to the task’s own state the moment a runner claims it.
A waiting task holds no secrets in the clear: its launch payload is encrypted at rest like every assignment, and the secrets reach only the runner that claims it — after the claim-time grant check, exactly as for work dispatched to a named runner. An unbound row names no runner at all; a bound one names the runner the hub picked and gives the payload only to that runner’s claim.
Needs the hub cannot meet
Section titled “Needs the hub cannot meet”Four needs never fall back to the hub, whatever the policy says. A task that
requires an isolation other than container (for example microvm, or a value
SupaCloud does not know) or a backend other than docker (for example ssh-exec)
cannot run in the hub’s plain container: with hub mode off its launch is refused
with no_eligible_runner: hub mode is off and the task requires …, and with hub
mode on a local policy is narrowed to queue. A task with a license_pool, or
one pinned to a runner with pin_fallback off, also waits for its runner instead
of running locally. The narrowing only ever tightens: fail stays fail, and no
project or workspace policy can widen it back to local.
Runner fallbacks onto the hub can be capped with
SUPACLOUD_HUB_AGENT_MEMORY_BUDGET_BYTES. A task that would fall back locally
lands on the hub only while the memory committed to the hub’s active agent
containers, plus its own resource class, fits that budget. Otherwise it waits for
the fleet as an unbound assignment, with the same queue deadline, and its task
records a placement_budget_deferred event. 0 or unset means unlimited. The
budget does not apply with hub mode off, where local runs are the instance’s
deliberate configuration.
Routing a workflow step
Section titled “Routing a workflow step”A workflow agent node — and therefore every backlog stage — accepts the same
runner block a task config does, and forwards it to the task it launches:
{ "runner": { "required_labels": ["unity"], "backend": "docker", "on_no_runner": "queue", "license_pool": "unity-pro" }}For an automation arm, set it per stage in the arm’s pipeline_config stage map
(for example stages.implement.runner), next to the stage’s harness, model and
effort overrides.
Taints
Section titled “Taints”A taint keeps generic work off a special machine. A runner that declares
taints accepts only tasks whose required labels include every taint — so a
label-less coding task is never placed on a workstation tainted gpu-only. Taints
and grants only narrow; neither can widen what a runner may run.
Set taints in the runner’s advanced panel, or over the API (owner or admin, same
rights as labels). Each taint is lowercased and must match
^[a-z0-9][a-z0-9._-]{0,63}$:
curl -X PATCH https://supacloud.example.com/api/runners/<id> \ -H "Authorization: Bearer <admin-token>" \ -H "Content-Type: application/json" \ -d '{ "taints": ["gpu-only"] }'Example: a GPU workstation and a Windows notebook
Section titled “Example: a GPU workstation and a Windows notebook”| Where | Setting |
|---|---|
| Project | placement_policy: {"on_no_runner": "queue", "queue_timeout_minutes": 240} |
| GPU workstation | labels [linux, unity, blender, cuda, gpu-only], taint [gpu-only] |
| Windows notebook | labels [windows, unity-win, windows-only], taint [windows-only] |
| Ordinary code items | no labels — they run on the hub or on generic, untainted runners |
A task tolerates a taint by requiring it as a label, and required labels still
match against the runner’s labels — so a tainted runner advertises each of its
taints as a label too, as above. A task for the workstation then requires its tool
plus the taint (for example [unity, gpu-only]); a task for the notebook requires
[unity-win, windows-only].
When a runner goes offline
Section titled “When a runner goes offline”Work a runner had been handed but not yet started returns to the queue and is
claimed by the next eligible runner (it keeps its queue deadline, or gets the
default one). Only work that had already started fails, with the message
runner went offline mid-run. The runner’s owner gets an in-app notification,
Runner offline: <name>, saying that queued work was returned to the queue and
running work failed.
Switching it off
Section titled “Switching it off”The whole placement policy sits behind the operator switch placement_queue
(default on). Turning it off restores the previous behaviour, in which a task
with no eligible runner runs on the hub:
curl -X PUT https://supacloud.example.com/api/operator/v1/switches/placement_queue \ -H "Authorization: Bearer <operator-token>" \ -H "Content-Type: application/json" \ -d '{ "enabled": false, "reason": "temporarily restore the hub fallback" }'Drain & cordon (graceful quiesce)
Section titled “Drain & cordon (graceful quiesce)”To take a runner out of rotation without killing its running tasks, set its
drain state. A cordoned / draining runner keeps heartbeating and finishes its
in-flight work but receives nothing new; active restores it.
curl -X POST https://supacloud.example.com/api/runners/<id>/drain \ -H "Authorization: Bearer <admin-token>" \ -H "Content-Type: application/json" \ -d '{ "drain_state": "draining" }' # active | cordoned | drainingThis is the graceful alternative to disabling a runner (POST /api/runners/{id}/status {"enabled": false}), which parks it abruptly and
rejects its heartbeats.
Concurrency cap
Section titled “Concurrency cap”capabilities.max_parallel caps how many tasks a runner runs at once. The server
counts a runner’s in-flight assignments and stops dispatching to it at the cap —
the work simply waits for a free slot or another eligible runner.
Least-loaded ordering
Section titled “Least-loaded ordering”By default eligible runners keep registry order. Turn on weighted
least-loaded to send each new task to the least-busy runner instead. It is a
persisted global switch (dispatch_least_loaded, default off), toggled via the
operator switches:
curl -X PUT https://supacloud.example.com/api/operator/v1/switches/dispatch_least_loaded \ -H "Authorization: Bearer <operator-token>" \ -H "Content-Type: application/json" \ -d '{ "enabled": true, "reason": "balance load across the fleet" }'A runner’s capabilities.weight (default 1) scales its share: a weight: 2
runner absorbs roughly twice the load before it is deprioritised — useful when
machines differ in size.
Per-workspace fairness (shared-pool admission)
Section titled “Per-workspace fairness (shared-pool admission)”Least-loaded balances across runners; per-workspace fairness balances across
workspaces competing for one shared pool. With it on, the dispatcher admits work
fairly per workspace so one busy workspace cannot monopolise the fleet and starve
the others — admission fairness on a shared pool, not a hard quota. It is a
persisted global switch (workspace_fairness_enabled, default off), toggled
exactly like the least-loaded switch via the operator switches:
curl -X PUT https://supacloud.example.com/api/operator/v1/switches/workspace_fairness_enabled \ -H "Authorization: Bearer <operator-token>" \ -H "Content-Type: application/json" \ -d '{ "enabled": true, "reason": "stop one workspace monopolising the shared fleet" }'An optional global integer workspace_fair_share_cap bounds how much of the pool
any single workspace may hold in flight at once. While the switch is off, dispatch
is byte-identical to today — no workspace accounting runs.
Priority & pinning (per task)
Section titled “Priority & pinning (per task)”Two per-task controls live in the task’s config:
priority(integer, default 0) — within a runner’s queue a higher-priority task is claimed first.pinned_runner_id— force the task onto one specific runner. If that runner is offline or at capacity the task does not run elsewhere silently: the placement policy decides whether it queues, is refused, or runs on the hub with the fallback recorded. Set"pin_fallback": trueto instead fall back to normal ranking when the pinned runner is unavailable.
Monitor: dispatch state
Section titled “Monitor: dispatch state”GET /api/runners/dispatch-state returns, per runner, its live in-flight count,
advertised cap, drain state and whether its heartbeat is stale — the real signal
for “is the fleet keeping up”, replacing any guesswork from container ids.
curl https://supacloud.example.com/api/runners/dispatch-state \ -H "Authorization: Bearer <admin-token>"Every steering mutation (register, enable/disable, drain, token rotation,
hub-mode) writes an audit_events row, so fleet changes are attributable.
Autoscaler (experimental)
Section titled “Autoscaler (experimental)”Rather than running a fixed fleet, the hub can grow and shrink it on demand. The
built-in autoscaler reads the fleet pull-queue signal and spawns new
local-Docker runner containers when work is queued, then scales them back in when
the pool is idle. It is off by default (SUPACLOUD_RUNNER_AUTOSCALE=off) — no
loop is spawned and dispatch is unchanged.
SUPACLOUD_RUNNER_AUTOSCALE=onSUPACLOUD_RUNNER_AUTOSCALE_MIN=1SUPACLOUD_RUNNER_AUTOSCALE_MAX=8SUPACLOUD_RUNNER_AUTOSCALE_RUNNER_IMAGE=<your-supacloud-image>SUPACLOUD_RUNNER_AUTOSCALE_COOLDOWN_SECS=120SUPACLOUD_RUNNER_AUTOSCALE_NETWORK=supacloud-agentsEach spawned runner needs a token, so the autoscaler must be configured with a
runner token to hand the container it launches — see the
environment-variable reference.
Scale-in is ARC-shaped and drain-gated: it cordons a victim (so the ranker
stops sending it new work), waits for its in_flight count to reach zero, and
only then removes it — running work is never force-killed.
Troubleshooting
Section titled “Troubleshooting”| Symptom | Likely cause | What to check |
|---|---|---|
| Task runs locally despite a healthy runner | Hub mode off, or no runner advertises the task’s image and the task’s placement policy is local (the task page shows an amber Hub fallback badge) |
GET /api/runners/config; the runner’s capabilities.images; the task’s placement_fallback_local event, which names why each runner was rejected |
| Task stays Waiting for runner (labels) | Policy queue and no runner that advertises those labels is free, online and tolerated by its taints — or the hub already placed the work on a runner that has not polled (offline, at its cap, or pinned) |
GET /api/runners/queue (each waiting task names its runner_bound and waited_seconds); dispatch-state; the runners’ labels and taints |
Task failed with no_runner_timeout |
It waited past queue_timeout_minutes without an eligible runner |
Bring a runner with those labels online, or raise the project’s queue timeout |
Launch refused with no_eligible_runner |
Policy fail and no runner was eligible |
The per-runner reasons in the error message |
| A label-less task never reaches a runner | The runner is tainted; only tasks that require every taint run there | The runner’s taints; add the taint to the task’s labels if it belongs there |
Task failed with runner went offline mid-run |
Its runner lost its heartbeat after the task had started (work not yet started would have returned to the queue) | The runner host; relaunch the task |
Runner shows online but gets no work |
Cordoned/draining, at its max_parallel cap, or a required label it lacks |
dispatch-state (drain_state, in_flight vs cap); the task’s required labels |
Runner flips to offline on its own |
Heartbeat stale past the window (default 90 s) | Worker clock/network; SUPACLOUD_RUNNER_STALE_SECS on the hub |
| A pinned task never starts | Pinned runner offline/at-capacity, pin_fallback not set, and the placement policy is queue |
The runner’s state; set pin_fallback if you want it to run elsewhere |
| One workspace’s tasks starve the others on a shared pool | Per-workspace fairness off | Turn on workspace_fairness_enabled; optionally set workspace_fair_share_cap |
| A microVM-required task waits while container runners sit idle | No runner holds a microvm grant (the filter is fail-closed) |
Enroll a runner with isolation: microvm running the microVM backend |
| “Bridge health check timed out” on a remote run | Agent container not on the runner’s Docker network | AGENT_NETWORK exists on the worker and matches |