You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So if you try to use additional options such as limiter: {}, the types aren't present. However it works just fine since the options are just relayed to the Worker class:
jointhejourney
changed the title
Missing WorkerOptions types on
Missing WorkerOptions types on BullQueueAdvancedProcessor and BullQueueAdvancedSeparateProcessor
Jan 20, 2024
Is there an existing issue for this?
Current behavior
Hi,
Currently, additional WorkerOptions from BullMQ are not presented in these advanced queue processor types:
bull/packages/bull/lib/interfaces/bull.interfaces.ts
Lines 6 to 16 in 5d43350
So if you try to use additional options such as
limiter: {}
, the types aren't present. However it works just fine since the options are just relayed to the Worker class:bull/packages/bullmq/lib/bull.providers.ts
Lines 37 to 42 in 5d43350
We could just extend the interface here: https://github.com/taskforcesh/bullmq/blob/b28981938e8a4504905363551544633d9734e20f/src/interfaces/worker-options.ts#L16
If this looks good, I can put up a PR. Thank you for all your work.
Minimum reproduction code
N/A
Package version
10.0.1
Bull version
4.17.0
NestJS version
10.3.0
Node.js version
18.19.0
In which operating systems have you tested?
Other
No response
The text was updated successfully, but these errors were encountered: