Update QueueProcessorService.ts

This commit is contained in:
syuilo 2023-05-29 13:30:57 +09:00
parent 4790ddfad6
commit b35b9bc27f
1 changed files with 11 additions and 9 deletions

View File

@ -324,15 +324,17 @@ export class QueueProcessorService implements OnApplicationShutdown {
} }
@bindThis @bindThis
public start() { public async start(): Promise<void> {
this.systemQueueWorker.run(); await Promise.all([
this.dbQueueWorker.run(); this.systemQueueWorker.run(),
this.deliverQueueWorker.run(); this.dbQueueWorker.run(),
this.inboxQueueWorker.run(); this.deliverQueueWorker.run(),
this.webhookDeliverQueueWorker.run(); this.inboxQueueWorker.run(),
this.relationshipQueueWorker.run(); this.webhookDeliverQueueWorker.run(),
this.objectStorageQueueWorker.run(); this.relationshipQueueWorker.run(),
this.endedPollNotificationQueueWorker.run(); this.objectStorageQueueWorker.run(),
this.endedPollNotificationQueueWorker.run(),
]);
} }
@bindThis @bindThis