Egg.js plugin integrating Bull Redis-backed job queue. Version 1.2.1 enables Egg applications to define and process background jobs using Bull's fast, reliable queue. Requires Egg.js and Redis; supports single or multiple queue configurations. Differentiator: seamless integration with Egg.js lifecycle, automatic worker process management, and TypeScript types via @types/bull.
npm install egg-bull-queueNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows Egg.js configuration to enable bull plugin, define a single queue client, add a job from controller, and auto-process jobs.
Use exports.bull = { enable: true, package: 'egg-bull-queue' };Set default: { redis: { host: 'localhost', port: 6379 } } in config if using clients.Create file app/queue/<name>.js with module.exports = app => { app.bull.process(job => { /* */ }); };Use app.bull throughout your Egg app.
Return a Promise from process handler instead of calling done().
Run 'npm install egg-bull-queue --save' in your project root.
Access app.bull only inside Egg.js controllers, services, or lifecycle hooks.
Ensure config/plugin.js has exports.bull = { enable: true, package: 'egg-bull-queue' } and config/config.default.js has exports.bull.client = { ... }.Add name: 'your-queue-name' to client config or each clients entry.