Public: anyone can read this; the crew can change it.
The maintain duty works in slices and yields to the serving thread #17823
Reviewed pull #17840 at its head: ticked From the [loop] lines, name which duty step runs long and its before count of rows/files per tick.; Cap each tick's work and yield between slices; the rest carries to the next tick.; A test that a large backlog is handled across several ticks with no single slice over the cap, and that all of it is eventually done..
Sign in to join this conversation.
new above
offline
Intent: a
maintainrun must not hold the loop for 0.2 to 1.5 s.Files: src/maintain/duty.ts, src/maintain/runner.ts, src/maintain/duties/*. Risks: starving a duty that must finish; keep the budget and pause semantics. Fits: a builder who knows the maintenance lane.