New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BullMQ reusing redis connections #1236
Comments
The documentation you are pointing to is for Bull, not BullMQ. In BullMQ you do not need to use that pattern, just pass directly the redis connection that you want to reuse and if BullMQ can reuse it it will do so automatically: |
@manast The documentation about reusing connections is on the bullmq docs website: https://docs.bullmq.io/bull/patterns/reusing-redis-connections |
@RoyNelsonCondor what is not longer needed / supported? |
I am trying to add logic to re-use Redis connections with bullMQ using this instruction from the bullMQ docs.
I am using the most recent (1.81.1) BullMQ npm version.
I followed the instruction on the docs, to create an object that includes a createClient method.
But I get the following error TS2559.
Type '{ createClient: (type: string, redisOpts: any); }' has no properties in common with type 'QueueOptions'.
Code Sample
node version: v16.13.0
typescript version: v4.5.5
The text was updated successfully, but these errors were encountered: