Sha256: 294bea1053dc6daf6d0cc6e63547de73061b56f058fb4297e95563680d4b11ca

Contents?: true

Size: 317 Bytes

Versions: 7

Compression:

Stored size: 317 Bytes

Contents

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
sidekiq-unique-jobs-3.0.12 spec/support/my_worker.rb
sidekiq-unique-jobs-3.0.11 spec/support/my_worker.rb
sidekiq-unique-jobs-3.0.10 spec/support/my_worker.rb
sidekiq-unique-jobs-3.0.9 spec/support/my_worker.rb
sidekiq-unique-jobs-3.0.8 spec/support/my_worker.rb
sidekiq-unique-jobs-3.0.7 spec/support/my_worker.rb
sidekiq-unique-jobs-3.0.5 spec/support/my_worker.rb