From 431af0148371431b1437f6dbfcddb1800ea1498e Mon Sep 17 00:00:00 2001 From: "M. Palanikannan" <73993394+Palanikannan1437@users.noreply.github.com> Date: Fri, 3 Oct 2025 16:10:21 +0530 Subject: [PATCH] [WIKI-704] fix: disable exiting on unhandled rejection/exception #7902 --- apps/live/src/start.ts | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/apps/live/src/start.ts b/apps/live/src/start.ts index f453a16fc..b2dafb26a 100644 --- a/apps/live/src/start.ts +++ b/apps/live/src/start.ts @@ -18,26 +18,26 @@ startServer(); // Graceful shutdown on unhandled rejection process.on("unhandledRejection", async (err: Error) => { - logger.error(`UNHANDLED REJECTION! 💥 Shutting down...`, err); + logger.error(`UNHANDLED REJECTION!`, err); try { - if (server) { - await server.destroy(); - } + // if (server) { + // await server.destroy(); + // } } finally { - logger.info("Exiting process..."); - process.exit(1); + // logger.info("Exiting process..."); + // process.exit(1); } }); // Graceful shutdown on uncaught exception process.on("uncaughtException", async (err: Error) => { - logger.error(`UNCAUGHT EXCEPTION! 💥 Shutting down...`, err); + logger.error(`UNCAUGHT EXCEPTION!`, err); try { - if (server) { - await server.destroy(); - } + // if (server) { + // await server.destroy(); + // } } finally { - logger.info("Exiting process..."); - process.exit(1); + // logger.info("Exiting process..."); + // process.exit(1); } });