-
-
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
Ruby reaper incorrectly checks active jobs — removes every active lock as result #517
Comments
https://github.com/mperham/sidekiq/blob/master/lib/sidekiq/api.rb#L925 I think what should have been used is |
* Use helper methods * Prevent reaping of active jobs Close #517 * Use an existing method
Released as v7.0.0.beta22 |
@mhenrixon thank you 🙏 |
@markiz Thank you for the wonderfully detailed bug reports. Made it a breeze to fix |
Hi @mhenrixon, not sure if I should have opened a separate issue.. This bug is mentioned as "fixed" in the changelog for v6.0.23, but there isn't anything about it in the corresponding diff Am I correctly assuming that the Changelog is wrong and this bug still present on the 6.x branch? |
Hi @godric, Unfortunately, there will be no reaping of old jobs in v6. I am having some trouble with the changelog generator. |
Describe the bug
https://github.com/mhenrixon/sidekiq-unique-jobs/blob/master/lib/sidekiq_unique_jobs/orphans/ruby_reaper.rb#L120-L132
This method checks sidekiq process list, and not active jobs.
Process hash looks like this in our setup:
In sidekiq dashboard it looks like this:
Note: one the
db7bbfe1a54e
is not the job id, but rather process id.This results in reaper removing any locks for the jobs being actively executed, so you might see however many concurrent heavy jobs at the same time.
The text was updated successfully, but these errors were encountered: