-
-
Notifications
You must be signed in to change notification settings - Fork 277
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
If the job dies, it doesn't remove the lock #304
Comments
That is expected behaviour. You mean the job was retried any number of times configured like retry and not completing? I'll add info in readme how to deal with that. |
I can use |
Well after some time, I got that the callbacks calls with SidekiqUniqueJobs::Digests.all(pattern: '3606e62e8d702dd382c873f64a543d40') # => []
MyWorker.perform_async(id) # => nil |
Ah yes! I put the wrong method in the documentation. Will update it in the next PR! |
I did it on #311, do you know why is still locked if the digest doesn't exist anymore? |
So I was looking into this @MaicolBen. It seems Redis is just not very reliable with the seconds. In my tests a sleep outside the map block seems to work fine but it is unreliable. You probably want something like 1 minute or so for the lock_expiration to make it more robust and reliable. |
Describe the bug
This happens with
until_executed
because the job needs to be executedExpected behavior
The lock should be released
Current behavior
The lock persists forever
Additional context
Gem version: 6.0.0.rc7
The text was updated successfully, but these errors were encountered: