-
-
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
Locks can't be found in UI? #735
Comments
further debugging: "Delete All" on the web UI - locks are shown as cleared out on the UI. However the job still reports that the same key already exists. > SidekiqUniqueJobs::Digests.new.entries
{"uniquejobs:f4f7dbd00db80a837590354401621908"=>1664566736.618991,
"uniquejobs:e5a9ea4f8e153a35f6ded5f23fb1e527:RUN"=>1664566738.4878461,
"uniquejobs:9a10d00cc95305531be30f13b956005c:RUN"=>1664566738.8416214,
"uniquejobs:2b19449a7adaa1461106a72cabe12a6f:RUN"=>1664566738.8636317,
"uniquejobs:51cf0c68620db7b16d433b178e39d7e1:RUN"=>1664566739.4959993} no match in the entries however directly deleting by digest does succeed and releases the lock > SidekiqUniqueJobs::Digests.new.delete_by_digest 'uniquejobs:1d6a8b849137793a8368e6513b58f436'
2022-09-30T19:41:59.911Z pid=16756 tid=ktw INFO: delete_by_digest(uniquejobs:1d6a8b849137793a8368e6513b58f436) completed in 1ms
=> 2
> ActivityItems::ItemCreateJob.perform_async
=> "324a590dbf84f5315c32cb09" However then jobs can just be queued repeatedly even with > ActivityItems::ItemCreateJob.perform_async
=> "4200cb3e8be0a9c5ba32ff7f"
> ActivityItems::ItemCreateJob.perform_async
=> "630c1eba5d46b279ba232a20"
> ActivityItems::ItemCreateJob.perform_async
=> "52389da6ff7d8daf89352f8a"
> ActivityItems::ItemCreateJob.perform_async
=> "1eda77d1672570eedada7b8f" |
We had the exact same problem today.
|
Same problem here:
I'm also unable to find the digest in the locked list
It seems like Cleanup Dead Locks couldn't delete the digest. |
My current solutions:
|
pdkproitf's fix has been running for us for a few months working pretty well. Reliability tapered off the last few weeks. we did the sidekiq 7.x & unique jobs 8.x upgrade to take a few fixes to see if that helped out. no positive results. This is impacting our production enough that I'm diving in and really trying to get to the root of it. I'm wildly unprepared for lua or redis internals. I cannot get any reproduction of problems on small result sets in dev/test. this is strictly a prod problem for us. Best I can find the most obvious difference is between digest entries & digest page [2] [production] pry(main)> ActivityItems::UserItemCreateJob.perform_async
2023-03-10T01:19:52.703Z pid=19697 tid=g91 uniquejobs=client until_and_while_executing=prod_unique_jobs:cb057bf79139c15aefd77584ea6b5cd9 INFO: Skipping job with id (a319e5a0f9176ccd9f6c2ca2) because lock_digest: (prod_unique_jobs:cb057bf79139c15aefd77584ea6b5cd9) already exists
=> nil
[3] [production] pry(main)> key = 'prod_unique_jobs:cb057bf79139c15aefd77584ea6b5cd9'
=> "prod_unique_jobs:cb057bf79139c15aefd77584ea6b5cd9"
[4] [production] pry(main)> digests = SidekiqUniqueJobs::Digests.new
=> #<SidekiqUniqueJobs::Digests:0x000000000bbb8a18 @key="uniquejobs:digests">
[5] [production] pry(main)> digests.count
=> 44050
[6] [production] pry(main)> digests.entries pattern: key
=> {"prod_unique_jobs:cb057bf79139c15aefd77584ea6b5cd9"=>"1678411182.5969353"}
[7] [production] pry(main)> digests.page pattern: key
=> [45329, 30976, []] seems that others are having the same/similar problem as #758, #734 Any suggestions or ideas are much appreciated! |
we had exact same issue for new version of sidekiq and sidekiq-uniq-jobs
I think this problem is quite serious because it affects the stability of the system. |
Describe the bug
Attempting to run down some unexpected lock behavior. Turn logging up. Plenty of locks are shown in the UI component. But I guess not all of them?
Expected behavior
Expect to be able to find locks in UI
Current behavior
Locks can't be found in UI
Worker class
note unique job key
uniquejobs:1d6a8b849137793a8368e6513b58f436
Additional context
Gemfile.lock
Sidekiq/unique jobs config
with default wildcard search other locks are present
Big love for the gem ❤️ I've been using it across projects for many years now!
The text was updated successfully, but these errors were encountered: