You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Correct the metric values whose meaning changes with a multi-actor worker #1801
Parent: #1664. Land after the worker state and eligible capacity children. A rename needs a change of the dashboards at the same time, and it is safer when the corrected signals already report.
Problem
Three enum values describe a condition that changed meaning when a worker gained an actor capacity.
The work
1. Rename the scheduler outcome no_free_worker to no_capacity.
What: ateapi reports this value on ate.scheduler.assignment.duration when a resume finds no worker to use. Change the value to no_capacity.
Why: ateapi reports this value on ate.scheduler.assignment.duration when a resume finds no worker with room. The router already reports no_capacity for the same condition, and the scheduler error is ErrNoCapacity.
2. Correct the brief of the router outcome no_capacity.
What: the brief says "the fleet had no free worker". Replace it with the same words used for no_room in item 1.
Why: a responder follows one request from the router to the scheduler. If the two components describe one condition in two different ways, the responder reads two failures and looks for two causes. The router and the scheduler reject for the same reason, and the words must say so.
3. Update every query that names a value you changed.
What: Keep dashboards / queries updated
Discussion
A change like this is a breaking change to dashboard, but I think it should be fine.. We need to make sure the changes of metrics (and attributes) land in the same branch cut of changes to sample queries and dashboard.
Rename the scheduler outcome no_free_worker to no_room.
+1 on the rename, but can we use no_capacity instead? The router already reports no_capacity for the same condition, and the error is also ErrNoCapacity.
The true cause is capacity that ran out during a write, which points at a different fix: more capacity, or a retry instead of a crash.
If a normal race on a shared worker ends in a crash, that's a scheduler bug. Should we track the retry in its own issue?
I updated the body and removed the old item 2 because a recent PR #1817 deleted the failure-reason taxonomy. WORKER_REASSIGNED is not on main, so there is no brief to correct.
Activity
krisztianfekete commentedon Sep 24, 2026
+1 on the rename, but can we use
no_capacityinstead? The router already reportsno_capacityfor the same condition, and the error is alsoErrNoCapacity.If a normal race on a shared worker ends in a crash, that's a scheduler bug. Should we track the retry in its own issue?
JeffLuoo commentedon Sep 25, 2026
Updated to
no_capacityI updated the body and removed the old item 2 because a recent PR #1817 deleted the failure-reason taxonomy. WORKER_REASSIGNED is not on main, so there is no brief to correct.
metrics: rename the scheduler outcome no_free_worker to no_capacity (a…