mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 12:44:07 -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() {
|
protected async exitSuccessFully() {
|
||||||
try {
|
try {
|
||||||
await CrashJournal.cleanup();
|
await Promise.all([CrashJournal.cleanup(), Db.close()]);
|
||||||
} finally {
|
} finally {
|
||||||
process.exit();
|
process.exit();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue