Quantcast
Channel: Active questions tagged config - Stack Overflow
Viewing all articles
Browse latest Browse all 5049

How to register multiple queues in NestJs Bull?

$
0
0

I am trying to create multiple queues in NestJs, the documentation says that:

Create multiple queues by passing multiple comma-separated configuration objects to the registerQueue() method.

But this is not working for me, because when I try to do so, VScode suggests me that I should be mentioning Bull option here, after the comma. Below is my configuration for a single queue, how do I register multiple queues?

@Module({    imports: [        ConfigModule,        BullModule.registerQueueAsync({            name: 'Queue1',            imports: [ConfigModule],            useFactory: async (configService: ConfigService) => ({                redis: {                    host: configService.get('QUEUE_HOST'),                    port: +configService.get('QUEUE_PORT'),                },            }),            inject: [ConfigService],        }),        HttpModule,    ],    controllers: [ScheduleController],    providers: [MainConsumer], //Service is included here})export class AppModule {}

Viewing all articles
Browse latest Browse all 5049

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>