fix(lifecycle): clean up service subscriptions, proxy retries, and stale runtime state on shutdown

This commit is contained in:
2026-03-21 22:30:30 +00:00
parent c7fe7aeb50
commit 39ff159bf7
10 changed files with 115 additions and 27 deletions

View File

@@ -35,6 +35,6 @@ export const runCli = async () => {
await dcRouter.stop();
process.exit(0);
};
process.on('SIGINT', shutdown);
process.on('SIGTERM', shutdown);
process.once('SIGINT', shutdown);
process.once('SIGTERM', shutdown);
};