Concurrency
Local Concurrency factor
import { Worker, Job } from 'bullmq';
const worker = new Worker(
queueName,
async (job: Job) => {
// Do something with job
return 'some value';
},
{ concurrency: 50 },
);worker.concurrency = 5;Multiple workers
Last updated
Was this helpful?