-
Notifications
You must be signed in to change notification settings - Fork 0
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
I think something got problem on groups feature when server crash #44
Comments
When I check the group status, it return maxed but it's not processing at all |
Which version of BullMQ Pro are you using? |
So to summarize your issue:
Can you confirm? |
Yes true
Please ask me anything if you need more info. |
Ok, an explanation for this behavior could be that the standard BullMQ (not Pro) is actually also using the new queues. For example, if a Pro worker crashes or is re-started, the standard BullMQ could move that job to wait, but since it does not know about groups, the group will stay at "maxed". |
Another thing. By any chance, do you share a Redis connection between the standard and the Pro version? |
I don't think so.. because I completely split between the standard BullMQ Queue-Worker and BullMQ Pro Queue-Worker.
It's because I just don't want to change it because it is already working well.
No I differentiate the connection. I don't know why but I was not even start the node server when I use same connection. |
Because when BullMQ starts it loads a bunch of lua scripts with that connection, and I think if you use two different versions with the same connection the scripts get mixed up. |
By connection I mean a IORedis instance btw. |
Also, I am releasing a "repairMaxedGroup" function to Pro and exposing it in Taskforce.sh so that you can fix the maxed groups manually. This should never happen, but at least if it happens know you can do something about it. We will need to investigate it further to discover the cause behind it. |
Oh, Thank you. It works! I just made worker to run every 10 minutes to check every BullMQ Pro Queue like below
|
The function is not designed to be used frequently as this issue should never happen :) If you are able to produce this issue frequently, then please provide some code that reproduces it and we will fix it instead. |
OK Thank you |
Hi
I set
group concurrency: 1
global concurrency: 15
And during the process one job and server got refreshed for some reason.
And it seems get back to waiting, but it never get active.
Even though I delete the stalled job and add again with same group id but the job is not work.
Seems that specific group id get stuck and doesn't get back to normal when server get crash during process.
The text was updated successfully, but these errors were encountered: