We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64e96b6 commit 98dca2bCopy full SHA for 98dca2b
src/services/abstract-microservice.ts
@@ -839,9 +839,10 @@ abstract class AbstractMicroservice {
839
const workers = _.times(count, (num) => this.runWorker(num + 1));
840
const eventWorkers = _.times(eventCount, (num) => this.runEventWorker(num + 1));
841
842
- return Promise.all([...workers, ...eventWorkers]).catch((e) =>
843
- this.logDriver(() => `${name} shutdown: ${e.message as string}`, LogType.ERROR),
844
- );
+ return Promise.all([...workers, ...eventWorkers]).catch((e) => {
+ this.logDriver(() => `${name} shutdown: ${e.message as string}`, LogType.ERROR);
+ process.exit(1);
845
+ });
846
}
847
848
0 commit comments