From f578f43c9af62aafcebc29483940b3d4a831365d Mon Sep 17 00:00:00 2001 From: Vikhyath Mondreti Date: Fri, 29 Aug 2025 00:25:47 -0700 Subject: [PATCH] graceful exit for drizzle migration --- apps/sim/drizzle.config.ts | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/apps/sim/drizzle.config.ts b/apps/sim/drizzle.config.ts index c05e14bd12..c8e739e6ea 100644 --- a/apps/sim/drizzle.config.ts +++ b/apps/sim/drizzle.config.ts @@ -21,14 +21,8 @@ if (env.DATABASE_SSL_CERT) { } process.once('exit', cleanup) - process.once('SIGINT', () => { - cleanup() - process.exit(0) - }) - process.once('SIGTERM', () => { - cleanup() - process.exit(0) - }) + process.once('SIGINT', cleanup) + process.once('SIGTERM', cleanup) } catch { // If writing fails, leave sslConfig undefined and allow connection to fail fast }