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

Function scheduleDaemonRetry

src/mcp/proxy.ts:516–522  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

514 for (const line of pending.splice(0)) void handleLocally(line);
515 };
516 const scheduleDaemonRetry = (): void => {
517 if (shuttingDown || retryTimer || retryBaseMs <= 0) return;
518 const delay = retryDelayMs;
519 retryDelayMs = Math.min(retryDelayMs * 2, retryMaxMs);
520 retryTimer = setTimeout(() => { retryTimer = null; void retryDaemon(); }, delay);
521 retryTimer.unref?.();
522 };
523 const retryDaemon = async (): Promise<void> => {
524 if (shuttingDown || daemonStatus !== 'failed') return;
525 // While a writing engine owns writer.pid no daemon can start (#2277). Hand

Callers 3

retryDaemonFunction · 0.85
onDaemonLostFunction · 0.85
runLocalHandshakeProxyFunction · 0.85

Calls 1

retryDaemonFunction · 0.85

Tested by

no test coverage detected