it would be very helpful to add a migration guide from kue to bull
any news for this migration?
kue example
import kue from 'kue';
const queue = kue.createQueue({
redis: process.env.REDIS_HOST,
});
const jobHandler = (job, done) => {
const { data } = job;
done();
}
queue.process('name', 1, jobHandler);
// calling a job
queue.create('name', params);
bull example
import Queue, { Job } from 'bull';
const queue = new Queue('DEFAULT', process.env.REDIS_HOST);
const jobHandler = (job) => {
const { data } = job;
}
queue.process('name', jobHandler)
// calling a job
queue.add('name', payload, params)
How to set priority for both kue and bull
Most helpful comment
kue example
bull example