Looking to iterate over all registered queues in NestJs Bull and perform actions on each queue.
Currently, I have the following setup:
@Injectable()
export class BullUIProvider {
constructor(@InjectQueue('backfill') private backfillQueue: Queue) {
setQueues([new BullAdapter(backfillQueue)]);
}
}
However, I would like to achieve something along these lines:
@Injectable()
export class BullUIProvider {
constructor(@Inject(queueProvider) private queues: QueueProvider) {
setQueues(queues.map((queue) => new BullAdapter(queue)));
}
}
It seems that currently I can only access the queues individually by specifying their names and using the @Inject decorator. Is there an alternative method for accessing all the queues at once?