Module: Sidekiq::LimitFetch
Defined Under Namespace
Modules: Global, Instances, Queues
Classes: UnitOfWork
Constant Summary
collapse
- TIMEOUT =
Sidekiq::BasicFetch::TIMEOUT
- RedisBaseConnectionError =
post_7? ? RedisClient::ConnectionError : Redis::BaseConnectionError
- RedisCommandError =
post_7? ? RedisClient::CommandError : Redis::CommandError
Instance Method Summary
collapse
Instance Method Details
#bulk_requeue(*args) ⇒ Object
Backwards compatibility for sidekiq v6.1.0
45
46
47
48
49
50
51
|
# File 'lib/sidekiq/limit_fetch.rb', line 45
def bulk_requeue(*args)
if Sidekiq::BasicFetch.respond_to?(:bulk_requeue) Sidekiq::BasicFetch.bulk_requeue(*args)
else Sidekiq::BasicFetch.new(config).bulk_requeue(*args)
end
end
|
#config ⇒ Object
38
39
40
41
|
# File 'lib/sidekiq/limit_fetch.rb', line 38
def config
post_6_5? ? Sidekiq : Sidekiq.options
end
|
#new(_) ⇒ Object
28
29
30
|
# File 'lib/sidekiq/limit_fetch.rb', line 28
def new(_)
self
end
|
#post_7? ⇒ Boolean
21
22
23
|
# File 'lib/sidekiq/limit_fetch.rb', line 21
def post_7?
@post_7 ||= Gem::Version.new(Sidekiq::VERSION) >= Gem::Version.new('7.0.0')
end
|
#redis_retryable ⇒ Object