Quick start
Expose your BullMQ queues to the Queuebert app with @queuebert/nest. Use it when your NestJS app already owns BullMQ queues and you want Queuebert to read stats, check queue health, pause and resume queues, clean old jobs or drain waiting ones.
Install#

npm install @queuebert/nest @nestjs/bullmq @nestjs/common @nestjs/core bullmqAdd ioredis too if you pass explicit Redis connection objects or monitor more than
one Redis instance.
Register your queues#
Import QueuebertModule next to your BullMQ setup and list the queues it should serve.
import { BullModule } from '@nestjs/bullmq';
import { Module } from '@nestjs/common';
import { QueuebertModule } from '@queuebert/nest';
import { EmailProcessor } from './email.processor';
@Module({
imports: [
BullModule.forRoot({
connection: { host: 'localhost', port: 6379 },
}),
BullModule.registerQueue({ name: 'emails' }),
QueuebertModule.forRoot({
path: 'admin/queue',
queues: [{ name: 'emails', processor: EmailProcessor }],
}),
],
providers: [EmailProcessor],
})
export class AppModule {}This serves Queuebert's endpoints under /admin/queue. That full URL is what you add
in the app.
Endpoint controls#
Out of the box Queuebert is read-only. Actions that change queue data only exist once
you list them in endpoints, and the app only shows the controls your server allows.
| Endpoint | What it does | Default |
|---|---|---|
stats | Queue counts and health | Always on |
metrics | Read-only processor metrics | On |
pause · resume | Stop and restart processing | Opt in |
clean | Remove old jobs | Opt in |
drain | Remove waiting jobs | Opt in |
migrations | Move jobs between Redis instances | Opt in |

Start read-only.
Stats and metrics are enough to see every queue in the app.
Turn on pause, resume, clean and drain one at a time, once your guards are in place.Turn on actions one at a time, once your guards are in place.Auth#

Queuebert doesn't authenticate requests for you.
QueuebertModule.forRoot({
queues: [{ name: 'emails', processor: EmailProcessor }],
endpoints: ['metrics', 'pause', 'resume'],
auth: {
guards: [AdminGuard],
decorators: [Roles('admin')],
},
});Next steps#
That's the setup. Your queues are ready for Queuebert.
Up and running?
A star on GitHub helps other teams find queuebert-js.
