module Statue::SidekiqStatistics::ThrottlingExceeded
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
Public Instance Methods
exceeded() { |*args| ... }
click to toggle source
Calls superclass method
# 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