lib/sidekiq/throttled/patches/throttled_retriever.rb in sidekiq-throttled-1.4.0 vs lib/sidekiq/throttled/patches/throttled_retriever.rb in sidekiq-throttled-1.5.0
- old
+ new
@@ -10,10 +10,10 @@
def retrieve_work
work = super
if work && Throttled.throttled?(work.job)
Throttled.cooldown&.notify_throttled(work.queue)
- requeue_throttled(work)
+ Throttled.requeue_throttled(work)
return nil
end
Throttled.cooldown&.notify_admitted(work.queue) if work