module Sidekiq::Throttled::Strategy::Base
Public Instance Methods
Source
# File lib/sidekiq/throttled/strategy/base.rb, line 7 def limit(job_args = nil) @limit.respond_to?(:call) ? @limit.call(*job_args) : @limit end
Private Instance Methods
Source
# File lib/sidekiq/throttled/strategy/base.rb, line 13 def key(job_args) key = @base_key.dup return key unless @key_suffix key << ":#{@key_suffix.call(*job_args)}" rescue StandardError => e Sidekiq.logger.error "Failed to get key suffix: #{e}" raise e end