@@ -23,6 +23,7 @@ import { ExpressAdapter } from '@bull-board/express';
2323import { EventEmitterModule } from '@nestjs/event-emitter' ;
2424import { LoggerModule } from 'nestjs-pino' ;
2525import { trace } from '@opentelemetry/api' ;
26+ import IORedis from 'ioredis' ;
2627import { DatabaseModule } from './infrastructure/db/database.module' ;
2728import { InvoicesModule } from './invoices.module' ;
2829import { AdminModule } from './admin.module' ;
@@ -38,7 +39,10 @@ import { EXPORT_INVOICE_QUEUE } from './infrastructure/queue/export-queue.servic
3839
3940const config = validateConfig ( ) ;
4041
41- const redisUrl = new URL ( config . REDIS_URL ) ;
42+ const redisConnection = new IORedis ( config . REDIS_URL , {
43+ maxRetriesPerRequest : null ,
44+ enableReadyCheck : false ,
45+ } ) ;
4246
4347/**
4448 * Bull Board solo se monta fuera de producción.
@@ -105,14 +109,7 @@ const bullBoardModules =
105109
106110 // Configuración global de Redis para BullMQ
107111 BullModule . forRoot ( {
108- connection : {
109- host : redisUrl . hostname ,
110- port : Number ( redisUrl . port ) || 6379 ,
111- ...( redisUrl . password && {
112- password : decodeURIComponent ( redisUrl . password ) ,
113- } ) ,
114- ...( redisUrl . username && { username : redisUrl . username } ) ,
115- } ,
112+ connection : redisConnection as never ,
116113 } ) ,
117114
118115 // Bull Board UI — solo activo fuera de producción
0 commit comments