Browse Source

Enable Bull Dashboard without environment variable

pull/6876/head
Thomas Kaul 1 week ago
parent
commit
8cbf85dcc2
  1. 6
      apps/api/src/services/queues/statistics-gathering/statistics-gathering.module.ts

6
apps/api/src/services/queues/statistics-gathering/statistics-gathering.module.ts

@ -13,6 +13,8 @@ import { StatisticsGatheringService } from './statistics-gathering.service';
@Module({ @Module({
exports: [BullModule, StatisticsGatheringService], exports: [BullModule, StatisticsGatheringService],
imports: [ imports: [
...(process.env.ENABLE_FEATURE_STATISTICS === 'true'
? [
BullBoardModule.forFeature({ BullBoardModule.forFeature({
adapter: BullAdapter, adapter: BullAdapter,
name: STATISTICS_GATHERING_QUEUE, name: STATISTICS_GATHERING_QUEUE,
@ -20,7 +22,9 @@ import { StatisticsGatheringService } from './statistics-gathering.service';
displayName: 'Statistics Gathering', displayName: 'Statistics Gathering',
readOnlyMode: process.env.BULL_BOARD_IS_READ_ONLY !== 'false' readOnlyMode: process.env.BULL_BOARD_IS_READ_ONLY !== 'false'
} }
}), })
]
: []),
BullModule.registerQueue({ BullModule.registerQueue({
name: STATISTICS_GATHERING_QUEUE name: STATISTICS_GATHERING_QUEUE
}), }),

Loading…
Cancel
Save