Skip to content

Instantly share code, notes, and snippets.

@benjaminudoh10
Created January 4, 2023 11:33
Show Gist options
  • Save benjaminudoh10/95f7681a65fba1e41dc9c71d1ba58960 to your computer and use it in GitHub Desktop.
Save benjaminudoh10/95f7681a65fba1e41dc9c71d1ba58960 to your computer and use it in GitHub Desktop.
Bull Board integration
...
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