Queue Adapters
Queue adapters wrap your Bull or BullMQ queue instances so the board can read and manipulate them. The core @bull-board/api ships with three built-in adapters; third-party queue systems can add their own.
Built-in adapters
BullMQProAdapter extends BullMQAdapter to handle Pro groups. All BullMQAdapter options work the same way on it.
Shared options
All adapters accept the same optional options:
Job data schema
Pass a JSON Schema as jobDataSchema to teach the dashboard what a queue's job data looks like. The Add job form then does three things with it:
- Prefills the job data editor with a starting value: the schema's
default, otherwise its firstexamplesentry, otherwise a skeleton built fromproperties(each key seeded with its owndefaultor a typed placeholder). - Autocompletes the expected keys as you type, with any
descriptionshown on hover. - Validates the JSON against the schema inline, flagging missing required fields, wrong types, and unknown keys before you submit.
The schema is documentation for the dashboard only. It is not enforced by Bull or BullMQ, so keep it in step with what your worker actually expects.
Instance methods
All adapters expose setFormatter and setVisibilityGuard:
Mixing adapters
You can mix Bull and BullMQ queues in the same board: