Closed anero closed 2 years ago
This would be a welcome change, currently fails with: "ERROR: Error fetching job: undefined method `retrieve_work' for Sidekiq::RateLimiter::Fetch:Class"
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
Closing, superceded by https://github.com/enova/sidekiq-rate-limiter/pull/42
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 ofSidekiq::BasicFetch
or an object that responds to the same methods instead of aClass
as it used to be.This change allows using the gem with newer versions while keeping compatibility with old ones. See mperham/sidekiq#4602 for more details.
Fixes https://github.com/enova/sidekiq-rate-limiter/issues/38.