mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
fix(core): Stop using unbound calls to stopProcess (no-changelog) (#5456)
This commit is contained in:
committed by
GitHub
parent
d266401ed8
commit
9a331ec7b6
@@ -1,4 +1,3 @@
|
||||
/* eslint-disable @typescript-eslint/unbound-method */
|
||||
import express from 'express';
|
||||
import http from 'http';
|
||||
import type PCancelable from 'p-cancelable';
|
||||
@@ -219,10 +218,6 @@ export class Worker extends BaseCommand {
|
||||
}
|
||||
|
||||
async init() {
|
||||
// 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();
|
||||
this.logger.debug('Starting n8n worker...');
|
||||
|
||||
Reference in New Issue
Block a user