-
-
Notifications
You must be signed in to change notification settings - Fork 279
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
SidekiqUniqueJobs::UniqueArgs#create_digest is getting called twice #391
Comments
I would really love to get to the bottom of this one. I am just right in the middle of finalizing the next version. Since it seems like sort of an edge case I’ll leave it open until then. I’d be interested in digging into how apartment works at some point. Sent with GitHawk |
You are right. I know what to do about this now. Thank you for reporting |
This is not a blocker by any means. But, a nice to have to be fixed. Let me know if you need anything. |
I believe this was fixed for v7.0.1; see #571 for how to upgrade. |
Describe the bug
I have patched
SidekiqUniqueJobs::UniqueArgs#create_digest
in my project to support different tenants that I have. But, noticed that this method is getting called twice and the interesting bit is it is getting called the second time even whenunique_digest
is there in the job.ps: Sidekiq worker we have does not take any args hence was unable to use
unique_args
option. Also not wanted to patch it & modify all workers to calculate unique args based on tenant.Expected behavior
I think this method should not get called when the job already has
unique_digest
valueCurrent behavior
It is getting called more than once even when the job already contains a
unique_digest
and the second timeApartment::Tenant.current
is incorrect.Worker class
Additional context
Not sure if this is a use case that would happen very often. So, I don't think this is a super critical issue. Though, I would like to know why this method is getting called the second time though
The text was updated successfully, but these errors were encountered: