Skip to content

Commit f578f43

Browse files
committed
graceful exit for drizzle migration
1 parent 5c73038 commit f578f43

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

apps/sim/drizzle.config.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,8 @@ if (env.DATABASE_SSL_CERT) {
2121
}
2222

2323
process.once('exit', cleanup)
24-
process.once('SIGINT', () => {
25-
cleanup()
26-
process.exit(0)
27-
})
28-
process.once('SIGTERM', () => {
29-
cleanup()
30-
process.exit(0)
31-
})
24+
process.once('SIGINT', cleanup)
25+
process.once('SIGTERM', cleanup)
3226
} catch {
3327
// If writing fails, leave sslConfig undefined and allow connection to fail fast
3428
}

0 commit comments

Comments
 (0)