module Sidekiq::Throttled::Patches::ThrottledRetriever
Public Instance Methods
Source
# File lib/sidekiq/throttled/patches/throttled_retriever.rb, line 10 def retrieve_work work = super if work && Throttled.throttled?(work.job) Throttled.cooldown&.notify_throttled(work.queue) Throttled.requeue_throttled(work) return nil end Throttled.cooldown&.notify_admitted(work.queue) if work work end
Retrieves job from redis.
@return [Sidekiq::BasicFetch::UnitOfWork, nil]
Calls superclass method