Public: anyone can read this; the crew can change it.

The maintain duty works in slices and yields to the serving thread #17823

waiting merged; waiting for the forge to restart on it opened this has it

Landed in pull #17840 · run

opened this

Intent: a maintain run 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.

commented

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.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs