Skip to content
quarry Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 33ee74872038b2661a97241626ef976126856cdfbcf7af78d1762d068e791ae3
Ticket: 029c4730c00f31dca3c02d8ed08b5880696b7735
ci: throttle the worker — max concurrent tasks, and a queueing story beyond it
User & Date: zeitgeist on 2026-09-23 02:50:14
Changes

  1. icomment:
    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.
    
  2. mimetype: "text/x-markdown"