class MyWorker include Sidekiq::Worker sidekiq_options queue: :working, retry: 1, backtrace: 10 sidekiq_options unique: false sidekiq_retries_exhausted do |msg| Sidekiq.logger.warn "Failed #{msg['class']} with #{msg['args']}: #{msg['error_message']}" end def perform(param) puts param end end