From 8cbf85dcc2297a198e15ce020950819d6b491341 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Sat, 16 May 2026 13:32:46 +0200 Subject: [PATCH] Enable Bull Dashboard without environment variable --- .../statistics-gathering.module.ts | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/apps/api/src/services/queues/statistics-gathering/statistics-gathering.module.ts b/apps/api/src/services/queues/statistics-gathering/statistics-gathering.module.ts index ab11c493d..60b963c69 100644 --- a/apps/api/src/services/queues/statistics-gathering/statistics-gathering.module.ts +++ b/apps/api/src/services/queues/statistics-gathering/statistics-gathering.module.ts @@ -13,14 +13,18 @@ import { StatisticsGatheringService } from './statistics-gathering.service'; @Module({ exports: [BullModule, StatisticsGatheringService], imports: [ - BullBoardModule.forFeature({ - adapter: BullAdapter, - name: STATISTICS_GATHERING_QUEUE, - options: { - displayName: 'Statistics Gathering', - readOnlyMode: process.env.BULL_BOARD_IS_READ_ONLY !== 'false' - } - }), + ...(process.env.ENABLE_FEATURE_STATISTICS === 'true' + ? [ + BullBoardModule.forFeature({ + adapter: BullAdapter, + name: STATISTICS_GATHERING_QUEUE, + options: { + displayName: 'Statistics Gathering', + readOnlyMode: process.env.BULL_BOARD_IS_READ_ONLY !== 'false' + } + }) + ] + : []), BullModule.registerQueue({ name: STATISTICS_GATHERING_QUEUE }),