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
c2a9683: Fleet booking, step 1 of 2 (A11-244): every fleet job leases its boxes through one lease ledger on the control plane, so jobs queue and never collide. The ledger is /var/lib/a11y-fleet-leases/ledger.json (src/fleet-leases/: a versioned JSON file written under a pid-checked mutex, with the booking rules, the estimated-start walk and the file kept apart). capture and maintain leases are exclusive; read is shared with capture; a ledger that cannot be read, or is of a version this code does not know, reads as every box held. The job service's in-memory claim is gone: a job joins the queue at its submission time (so a restart keeps every job's place), starts only when it holds the turn for boxes it can have (jobs are served in order; a job that names boxes reserves only those; a job for any N boxes or ready holds the head of the line so it is never starved), releases each box as soon as its own share of the pages is done, releases the lease when it ends (done, failed or cancelled), renews it every 30 s, and loses it 5 minutes after the last renewal if its service dies. fleet job status shows a queued job's place: n of m, its estimated start (or unknown (why)) and who it waits on, in text and in --json (queue); fleet lease list [--json] shows the leases and the queue. A box that leaves a running job, by three failed captures in a row or by a current difference in the hourly drift record (runs/fleet-drift.json), fails only its own unsent pages (<box> left the fleet: <why>, no longer moved to the other boxes), is named in dropped, and has its lease freed once its capture in flight ends; a box the drift record lists is not offered to a new job, and a job that names one fails at start. a11y-fleet-jobs.service gains the a11y-fleet-leases state directory. Step 2 adds the scheduled work (the drift check, the daily freeze, auto-off).