inject buffer service, implement drain
This commit is contained in:
1 parent
860b2d6214
commit
5fab2d0a30
3 files changed
+6
No files matched your search
@@ -24,6 +24,7 @@ export const initShutdownListener = (server: Server | null, services: ShutdownTa
|
||||
|
||||
try {
|
||||
server?.close();
|
||||
await services.worker.drain();
|
||||
await services.worker.shutdown();
|
||||
await services.db.disconnect();
|
||||
logger.info({ message: "Graceful shutdown complete" });
|
||||
|
||||
Reference in new issue
Block a user