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

A `[loop]` stall line names what the serving thread was doing: the route or duty in flight #17974

shipped production is serving it opened this has it

Landed in pull #17982 · run

opened this

Why: production still blocks for 0.2 to 1.5 s; blockedLine (src/kernel/loop_watchdog.ts) is written from outside the thread, so it says the loop was blocked but not what ran.

Done:

Files: src/kernel/loop_watchdog.ts, src/http/ (where a request is dispatched), the duty runner. Risks: a write on every request must be one assignment, not a Map or an allocation; keep the hot path flat. Do not add a governor. Builder: one run, Sonnet-sized.

commented

Reviewed pull #17982 at its head: ticked The serving thread records its current step in one small cell the watchdog reads without touching the thread: route METHOD /path-pattern for a request (the route pattern, never the raw URL or query), duty <name> for a scheduled duty (maintain, sweeps), cleared when it ends.; blockedLine's extra carries it: ... (seen from outside the thread) in: route GET /:owner/:repo/info/refs. Nothing else is added to the line; no user text, no tokens.; Test (test/loop-watchdog*.test.ts, extend the one there): with a step set the line names it; with none it is unchanged; a path with a query string or a token-like segment is logged as its pattern only. Fails without the change..

Sign in to join this conversation.

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

Keyboard shortcuts

Docs