fix(core): Stop using unbound calls to stopProcess (no-changelog) (#5456)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2023-02-10 16:34:39 +01:00
committed by GitHub
parent d266401ed8
commit 9a331ec7b6
5 changed files with 11 additions and 26 deletions

View File

@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/unbound-method */
import { flags } from '@oclif/command';
import { LoggerProxy, sleep } from 'n8n-workflow';
import config from '@/config';
@@ -71,10 +70,6 @@ export class Webhook extends BaseCommand {
this.error('Webhook processes can only run with execution mode as queue.');
}
// Make sure that n8n shuts down gracefully if possible
process.once('SIGTERM', this.stopProcess);
process.once('SIGINT', this.stopProcess);
await this.initCrashJournal();
await super.init();