-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
(Follow up from previous issue: #116)
We're not able to configure a BullMQ Pro worker to have both local group rate limit and local group concurrency at the same time.
Code to replicate issue:
const generalPurposeQueue = newQueuePro("general-purpose", { connection });
const worker = new WorkerPro("general-purpose", processFunc, {
concurrency: 1, // only job at a time per worker
group: {
concurrency: 1, // default 1 job per group across worker pool
limit: {
max: 1,
duration: 100000, // 100 seconds
},
},
connection,
});
Expected Behaviour
The worker starts up and we can use both concurrency and rate limit configs for groups in the queue.
Actual Behaviour
Exception on startup
stack: Error: Rate limit and concurrency cannot be used together
at new WorkerPro (/obsidian/node_modules/@taskforcesh/bullmq-pro/src/classes/worker-pro.ts:161:13)
at startWorker (/obsidian/packages/core-infra/src/bullmq/core/worker.ts:305:18)
at processTicksAndRejections (node:internal/process/task_queues:105:5)
at startup (/obsidian/apps/general-purpose-worker/src/index.ts:84:3)
We're on version 7.35.2
of bullmq-pro
and version 5.53.1
of bullmq
. Let me know if you have any question or anything I can clarify further.
pkpio
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request