feat(core): Add unique id to instances (#6863)

* add serverId and workerId

* adjust id format

* fix logger init / test

* update implementation
This commit is contained in:
Michael Auerswald
2023-08-07 17:03:21 +02:00
committed by GitHub
parent f038e1e9a6
commit 6499f42481
8 changed files with 35 additions and 3 deletions

View File

@@ -85,6 +85,7 @@ export class Webhook extends BaseCommand {
async run() {
await Container.get(Queue).init();
await this.server.start();
this.logger.debug(`Webhook listener ID: ${this.server.uniqueInstanceId}`);
this.logger.info('Webhook listener waiting for requests.');
// Make sure that the process does not close