|
2026-09-24
| ||
| 00:55 | • Ticket [029c4730c0] ci: throttle the worker — max concurrent tasks, and a queueing story beyond it status still Closed with 1 other change artifact: d18be70f9c user: zeitgeist | |
|
2026-09-23
| ||
| 12:18 | • Closed ticket [029c4730c0]. artifact: 5bba13838d user: zeitgeist | |
| 11:48 | • Ticket [029c4730c0]: 2 changes artifact: fd588ebb21 user: zeitgeist | |
| 02:50 | • Ticket [029c4730c0]: 2 changes artifact: 33ee748720 user: zeitgeist | |
|
2026-08-29
| ||
| 23:50 | • Ticket [029c4730c0]: 1 change artifact: 5aebf90ff3 user: dmestas | |
| 22:15 | • New ticket [029c4730c0]. artifact: f2c5d2fa57 user: dmestas | |
ci: throttle the worker — max concurrent tasks, and a queueing story beyond it
NOT DEPLOYED. dmestas chose the quarry-side shape for what was left here: landing cb6273319c29 (branch-churn-waits-when-the-worker-is-full) is open. When the workers are full (capacity = the sum of every worker's max_tasks from the engine, minus the runs the forge has in flight), a fresh check-in on a branch nobody has proposed is recorded as waiting in a new ci_deferred table instead of started; trunk and any branch with an open landing start regardless; each fold round drains the waiting list longest-wait first as room appears, or at once for a branch that has since been proposed; any start (fold, Re-run, a landing opening) forgets the wait. The check-in and landing pages show the wait as a row of its own ("waiting", no run to link, "the worker is full; it runs when a slot frees or a landing opens"), and a landing opened over a waiting check-in asks for the run as it does over a cancelled one. An engine that does not list workers never defers, so nothing changes where capacity is unknown. Not built: priority inside the engine's own queue and engine-side max_tasks enforcement, both dagnats asks; with churn held outside the queue a landing never stands behind it, which was the case that mattered. Measurement once it lands: with the worker at 3, push four unproposed branches inside a minute; the fourth check-in's page shows the waiting row; when one run completes the fourth starts; opening a landing on a waiting branch starts it at once.
DEPLOYED WITH A DEFECT, fix open. cb6273319c29 is on 7a5d179697db. Measuring it before the burst test, the capacity check was wrong: it compared the workers' max_tasks (3) with the forge's ci_run rows marked running (13), and the engine agreed, 13 running runs. Twelve of them are dantest-sandbox runs queued since 18-22 September for html/puzzles task types that no worker serves; one step was actually running. So the live build treats the worker as permanently full: a push to a branch with no open landing is recorded as waiting and does not run until a landing opens on it (which drains it immediately, and did for f9f87716's branch). Trunk and proposed branches are unaffected. Fix: landing cf5ec537e63b counts occupancy from the engine as steps (every running step, plus queued steps on runs younger than 15 minutes), which is what max_tasks bounds; the store count is removed. The burst measurement follows its deploy. Separately, for a person to decide: the twelve zombie dantest-sandbox runs will never run on this forge; cancelling them is a one-line engine call each but they are jva's sandbox, so I have not.
Closed on build eea48c5747e4. Three landings built the quarry-side deferral dmestas chose: cb6273319c29 (the rule and the waiting row), 33df8ef5eb6e (occupancy counts only CI runs: the notification service's digests share the engine and were counted as busy CI slots), 3227928923a2 (re-measure the worker after each launch, since a quarry run holds three steps; ignore worker registrations silent for 90s, since a deploy restart lists the worker twice). A fourth defect found on the way, cf5ec537e63b, stopped runs queued for days on task types no worker serves from counting. Measured on eea48c5747e4 after the engine listed a single live worker: four unproposed probe branches pushed at 12:17:20, :24, :27 and :30. Probe 1 started at 12:17:22; probe 2 at 12:17:26, after probe 1 had finished; probe 3 logged "the worker is full; waiting for a slot" at 12:17:28 and started at 12:17:32 when probe 2 finished; probe 4 waited at 12:17:33 and started at 12:17:41. One run at a time, each waiting branch started within seconds of room, all four completed, nothing left waiting. Opening a landing on a waiting branch starts it at once (measured earlier under 49323c33's sweep and again on f9f87716's branch). Not built, and not needed for the case that mattered: priority inside the engine's queue and engine-side max_tasks enforcement (dagnats asks). Open for a person: twelve dantest-sandbox runs have sat queued since 18-22 September on html/puzzles task types no worker serves; they no longer affect CI here, but they will never run. Probe branches closed.