mirror of
https://github.com/n8n-io/n8n.git
synced 2026-12-04 16:51:08 +00:00
fix(core): Close db connection gracefully when exiting (#8045)
Close db connection gracefully when exiting
This commit is contained in:
1 parent
48d4f4a71b
commit
e69707efd4
1 file changed
+1
-1
@@ -124,7 +124,7 @@ export abstract class BaseCommand extends Command {
|
||||
|
||||
protected async exitSuccessFully() {
|
||||
try {
|
||||
await CrashJournal.cleanup();
|
||||
await Promise.all([CrashJournal.cleanup(), Db.close()]);
|
||||
} finally {
|
||||
process.exit();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user