mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 09:36:44 +00:00
fix(core): Close db connection gracefully when exiting (#8045)
Close db connection gracefully when exiting
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user