Skip to content
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

Fix for compatibility with sidekiq >= 6.1.0 #39

Closed

Conversation

anero
Copy link
Contributor

@anero anero commented Oct 7, 2020

A refactoring in the internal Fetch API was introduced in Sidekiq 6.1.0 that is not backwards compatible.

As part of this refactoring the object in the :fetch option is expected to be an instance of Sidekiq::BasicFetch or an object that responds to the same methods instead of a Class as it used to be.

This change allows using the gem with newer versions while keeping compatibility with old ones. See sidekiq/sidekiq#4602 for more details.

Fixes #38.

….0 that is not backwards compatible.

As part of this refactoring the object in the :fetch option is expected
to be an instance of Sidekiq::BasicFetch or an object that responds to
the same methods.

This change allows using the gem with newer versions while keeping
compatibility with old ones. See sidekiq/sidekiq#4602 for more details.
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 391f00c on controlshift:upstream_fix_for_sidekiq_6_1_0 into 3e8bc81 on enova:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 391f00c on controlshift:upstream_fix_for_sidekiq_6_1_0 into 3e8bc81 on enova:master.

@Empact
Copy link

Empact commented Nov 16, 2020

This would be a welcome change, currently fails with: "ERROR: Error fetching job: undefined method `retrieve_work' for Sidekiq::RateLimiter::Fetch:Class"

@chriszo111
Copy link

Necessary to enable using sidekiq-pro >= 5.2.0 which depends on sidekiq >= 6.1.0 as there was a memory leak in sidekiq-pro

@anero
Copy link
Contributor Author

anero commented Jul 28, 2022

Closing, superceded by #42

@anero anero closed this Jul 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incompatibility with Sidekiq >= 6.1.0
4 participants