mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 20:24:05 -08:00
fix(core): Close db connection gracefully when exiting (#8045)
Close db connection gracefully when exiting
This commit is contained in:
parent
48d4f4a71b
commit
e69707efd4
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue