-
-
Notifications
You must be signed in to change notification settings - Fork 276
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 is busy running script and script never terminates #441
Comments
Hi @tacticiankerala thanks for the report! Could you try to switch to the ruby version of the reaper? SidekiqUniqueJobs.configure do |config|
config.reaper = :ruby
end There are other things you can do to control the reaper like |
Sure. Let me try this out! |
@mhenrixon changing it to
|
Actually, I've modified the uniqueness key digest to make it play nice with different tenants we have. That could be messing this up as well. Could you confirm?
|
No, you are right. It must be the migration script then. I’ll have to think a little on this... baffled by it to be honest |
I think I was wrong and you are right about the source of problem is not the migration script. I see the following logs
Let me investigate a bit more and comeback. Meanwhile if you have any more pointers or any specific things I should look for, please let me know. |
I was able to narrow down the issue to
this is what is causing the issue. I'll look into the exact script and let you know my further findings |
Try beta3 @tacticiankerala this problem should be no more 👍 thank you for taking the time to report |
Thank you so much for the quick turnaround! I'll try it out and report back. |
Redis is no longer getting blocked after upgrading to beta3. But, noticing the below exception in the logs:
|
@mhenrixon : I think this line is causing it - https://github.com/mhenrixon/sidekiq-unique-jobs/blob/master/lib/sidekiq_unique_jobs/orphans/reaper.rb#L214 |
Ah, of course. Thanks @tacticiankerala I will fix it in a couple of hours! |
@tacticiankerala Let me know how you get along with it! |
@mhenrixon : Just got a chance to test this and it works great! Thank you so much for fixing the issues in no time. Really appreciate all your effort :) |
Describe the bug
I was trying to upgrade to v7-beta2 of this gem. After I've upgraded and restarted sidekiq, I've started getting Redis error. Upon investigating I found out that a script is blocking all Redis operations. I think it might be the lock migration script that is causing this. Here are the details of my current setup
OS: Mac OS High Sierra
Redis: v3.2.9
Sidekiq: v5.2.7
Sidekiq Uniquene Jobs: 6.0.13
Rails: 5.2.3
Ruby: 2.6.2
Expected behavior
Sidekiq/rails server should start as expected and connect to Redis and operates as usual
Current behavior
All operations on redis is blocked because a non-terminated script is running. I've kept it runnng for a few hours but it never finished.
Additional context
Could you guide me on further debugging this or you need more information/context on the problem
The text was updated successfully, but these errors were encountered: