Module: Statue::SidekiqStatistics::ThrottlingExceeded
- Defined in:
- lib/statue/sidekiq_statistics.rb
Overview
This module is prepended in sidekiq-throttler rate_limit class Wraps the exceeded block with a block that also counts the job as beeing throttled
Instance Method Summary collapse
Instance Method Details
#exceeded(&block) ⇒ Object
65 66 67 68 69 70 |
# File 'lib/statue/sidekiq_statistics.rb', line 65 def exceeded(&block) super do |*args| yield(*args) Statue::SidekiqStatistics.count_event("throttled", worker, "queue" => queue, "args" => payload) end end |