[Bug]: Setting a concurrency doesn't change the concurrency field on the worker #2880
Closed
1 task done
Labels
bug
Something isn't working
Version
v5.22.0
Platform
NodeJS
What happened?
When we set a concurrency on a worker in the constructor and then set a new concurrency using the setter
worker.concurrency = 10
, thenworker.concurrency
is still the concurrency of the worker set in the constructorisundefined
.We can use
worker.opts.concurrency
to get the currentconcurrency
but this seems like a bug.Relevant code:
bullmq/src/classes/worker.ts
Line 241 in 092019f
and
bullmq/src/classes/worker.ts
Lines 387 to 396 in 092019f
How to reproduce.
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: