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
Hi, I'm trying to test the possible failing cases for BullMQ while working with Redis. I met a bug on BullMQ that I couldn't figured out why it's being stuck at that state. If I stop my Redis instance before creating the Queue (before app startup) normally it's giving "ECONNREFUSED" error while trying to connect to non-existing Redis instance. The problem is not with it, which is a normal error, but after a time even when I start the Redis instance it looks like BullMQ is stuck at initiating, which instead of trying to re-create a new Redis connection or trying to reconnect the existing one set to queue's connection, it's still giving the existing initiate promise and this is causing the BullMQ never to connect the Redis instance.
The text was updated successfully, but these errors were encountered:
Hi @ocdinvstr
I was struggling on the same piece of issue, and after looking at the bullmq code, I found the redis connection is implementing eventEmitter 🎉
Automatic reconnection has been improved a lot in latests releases so I am quite sure this issue does not exist anymore. Reopen if you can provide a case that states otherwise.
My concern was to bypass the retrier and exit, just found useful to share this tip.
Bull correctly handles retries, but in the case of an unavailable Redis, I want k8s to restart the pod instead.
Hi, I'm trying to test the possible failing cases for BullMQ while working with Redis. I met a bug on BullMQ that I couldn't figured out why it's being stuck at that state. If I stop my Redis instance before creating the Queue (before app startup) normally it's giving "ECONNREFUSED" error while trying to connect to non-existing Redis instance. The problem is not with it, which is a normal error, but after a time even when I start the Redis instance it looks like BullMQ is stuck at initiating, which instead of trying to re-create a new Redis connection or trying to reconnect the existing one set to queue's connection, it's still giving the existing initiate promise and this is causing the BullMQ never to connect the Redis instance.
The text was updated successfully, but these errors were encountered: