lib/sidekiq/throttled/strategy/base.rb in sidekiq-throttled-0.16.0 vs lib/sidekiq/throttled/strategy/base.rb in sidekiq-throttled-0.16.1

- old
+ new

@@ -10,11 +10,15 @@ private def key(job_args) key = @base_key.dup - key << ":#{@key_suffix.call(*job_args)}" if @key_suffix - key + return key unless @key_suffix + + key << ":#{@key_suffix.call(*job_args)}" + rescue => e + Sidekiq.logger.error "Failed to get key suffix: #{e}" + raise e end end end end end