fix(core): Fix issue that worker and webhook service close directly (#5461)

This commit is contained in:
Jan Oberhauser 2023-02-11 09:46:10 -06:00 committed by GitHub
parent 59f5c4221e
commit 339655611f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View file

@ -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) {

View file

@ -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) {