-
-
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
Job finished, but lock is not cleared #677
Comments
Here's more info after I did a bit of debugging.
argument
argument None of this makes any sense to me. Where is the real job id? Where those digests came from? They aren't shown in web ui btw, also this:
|
Nevermind |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sidekiq-unique-jobs 7.1.12
sidekiq 6.3.1
Job:
Config:
After upgrading sidekiq and sidekiq-unique-jobs I run
100.times { Job::TestJob.perform_async }
in rails console and check /sidekiq/locks. The problem is, when the job has finished the lock stays there and I cannot enqueue more jobs:It will eventually expire after
lock_ttl
, but I wantlock_ttl
to be high enough for additional safety. Or I can setconfig.reaper_interval = 10
and this seems to work, but it doesn't look like a proper way of cleaning up locks after successful job runs.From readme "it is either unlocked when lock_ttl is hit or when Sidekiq has called the perform method on your worker" but in my case sidekiq has successfully called perform, but lock remains active.
It works on sidekiq 5.2.9 and sidekiq-unique-jobs 6.0.22
The text was updated successfully, but these errors were encountered: