Skip to content

armgit / plane

Public Imported from GitHub
0

πŸ”₯πŸ”₯πŸ”₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.

[WIKI-704] fix: disable exiting on unhandled rejection/exception #7902

M. Palanikannan431af0148371
diff --git a/apps/live/src/start.ts b/apps/live/src/start.ts
index f453a16fcc..b2dafb26ae 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);
}
});