MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / retired

Method retired

src/mcp/query-pool.ts:398–404  ·  view source on GitHub ↗
(w: PoolWorker)

Source from the content-addressed store, hash-verified

396 }
397
398 private retired(w: PoolWorker): void {
399 const retirement = this.retiring.get(w);
400 if (!retirement) return;
401 clearTimeout(retirement.cap);
402 this.retiring.delete(w);
403 retirement.settle();
404 }
405
406 // A worker died (crash hook, OOM, segfault, exit≠0). Respawn a replacement and
407 // retry its in-flight job once; a job that keeps crashing workers fails

Callers 2

spawnOneMethod · 0.95
terminateMethod · 0.95

Calls 3

getMethod · 0.65
deleteMethod · 0.65
settleMethod · 0.45

Tested by

no test coverage detected