-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Redis Cluster, Can't add the job to the failed queue #2005
Comments
You must not use "done" and async at the same time in your process functions. Furthermore if you still have issues provide a complete reproducible case so we can look into it. |
Thanks for the reply, but this still doesn't seem to solve my confusion!
|
A couple of things, did this same example work in non cluster redis? and secondly, how do you know the job did not end in the failed status? |
It can work normally on non-cluster! |
ok, then you need to define the prefix for the queue like this: "{myPrefix}", default is "bull" which is nt compatible with cluster: https://github.com/OptimalBits/bull/blob/develop/PATTERNS.md#redis-cluster |
As in the above case, I have defined the prefix, but still cannot achieve the expected effect,So I don't know if this is a framework compatibility issue. Is it possible to fix it in the future? |
oh yes sorry, I am blind this morning. What is your redis cluster setup? |
I am not quite sure what you mean, Because my Redis is a purchased cloud service. |
I need some setup in order to test it myself... is this in RedisLabs or where? |
The Redis service I purchased from ALiYun |
Ok, I will try to reproduce this in a local setup. However, if you do not need the cluster setup for other things than Bull then you could also switch to non cluster mode, since there are no advantages in using cluster with Bull. |
Yes, but due to special reasons, I cannot switch to a non-clustered state. I look forward to making progress as soon as possible. Thanks again! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
We're experiencing the same issue, I was wondering if this is planned to be fixed. |
@davidnazw first I need to be able to easily reproduce it, I haven't so far... |
老哥 我也遇到同样的问题了 请问 你解决了吗? |
As a side note, you may consider upgrading to BullMQ -> https://bullmq.io as there are no know issues with Redis Cluster. |
In the environment of Redis cluster,Can't add the job to the failed queue,Job will hold the lock for a long time until the Job times out!
Description
Bull version
3.22.0
The text was updated successfully, but these errors were encountered: