Relationships
#5268 The archive worker keeps its concurrency slot when it cannot create a work directory, so scoring stops on that replica until restart
Opened by stack72 · 12/1/2026
Found by the code review of swamp-club#5264, then reproduced. #5264 does not introduce it.
In lib/infrastructure/extension-archive-worker-subprocess.ts, #runWithSources acquires a slot, then calls Deno.makeTempDir, and only then enters the try whose finally releases the slot. If makeTempDir throws (a full disk, an unwritable temp folder), the slot is never released.
Scoring defaults to one slot, so one failure leaves every later scoring run on that replica waiting forever, with no error and no timeout, since the timeout starts only at spawn. Extraction has two slots, so two failures leave every push on that replica waiting.
Reproduction, with one worker whose work directory cannot be created: the first analyzeForScoring rejects with NotFound; the second is still waiting after 5 seconds.
Suggested fix: release the slot on every path out, by entering the try before makeTempDir and removing the directory only if it was created. A test can force it with the tempRoot option #5264 adds.
Open
No activity in this phase yet.
Sign in to post a ripple.