Created
January 4, 2023 11:33
-
-
Save benjaminudoh10/95f7681a65fba1e41dc9c71d1ba58960 to your computer and use it in GitHub Desktop.
Bull Board integration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
import { createBullBoard } from 'bull-board'; | |
import { BullMQAdapter } from 'bull-board/bullMQAdapter'; | |
const app = express(); | |
... | |
const defaultQueue = new QueueService().getQueue(Queues.DEFAULT); | |
if (defaultQueue) { | |
const router = createBullBoard([ | |
new BullMQAdapter(defaultQueue), | |
]).router; | |
app.use('/jobs', router); | |
} | |
export { app }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment