mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-21 11:49:59 +00:00
fix(core): Fix issue that worker and webhook service close directly (#5461)
This commit is contained in:
@@ -80,6 +80,9 @@ export class Webhook extends BaseCommand {
|
|||||||
async run() {
|
async run() {
|
||||||
await new WebhookServer().start();
|
await new WebhookServer().start();
|
||||||
this.logger.info('Webhook listener waiting for requests.');
|
this.logger.info('Webhook listener waiting for requests.');
|
||||||
|
|
||||||
|
// Make sure that the process does not close
|
||||||
|
await new Promise(() => {});
|
||||||
}
|
}
|
||||||
|
|
||||||
async catch(error: Error) {
|
async catch(error: Error) {
|
||||||
|
|||||||
@@ -353,6 +353,9 @@ export class Worker extends BaseCommand {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Make sure that the process does not close
|
||||||
|
await new Promise(() => {});
|
||||||
}
|
}
|
||||||
|
|
||||||
async catch(error: Error) {
|
async catch(error: Error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user