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 with redis cluster error #1232
Comments
I fix this problem with adding prefix to this.queueScheduler[queueName] = new QueueScheduler(queueName, {
connection: this.connectionToRedis,
prefix: '{BULLMQ}',
}); |
I just learned after debugging for hours, any classes initialized from bullmq you should check if they accept "prefix" option. Eg. new Worker() also needs it |
Additionally from other issue, it may happen that you get errors like |
The keyPrefix feature in ioredis is not compatible with BullMQ unfortunatelly. |
Good to know ! This should be like big red warning in Docs and maybe even runtime error if keyPrefix is provided to ioredis? It's not mentioned anywhere as fair as I can tell, and the issues it introduces are hard to debug (and connect to keyPrefix being present). |
I updated the documentation, this was documented in older Bull but not in BullMQ. However the best would be to raise an exception if we detect that the connection is using keyPrefix. |
Hi I have this configuration for redis cluster :
and this is my redis cluster health check result :
all the redis instances are in docker and I get this error when I try to create a queue:
Can you tell me what is the problem? Thanks
The text was updated successfully, but these errors were encountered: