Sha256: c422795285e44db6dc6f8cc3ae40d4445ef9550789072779c0309c4451d3d3f8

Contents?: true

Size: 310 Bytes

Versions: 3

Compression:

Stored size: 310 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(*)
    # NO-OP
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sidekiq-unique-jobs-4.0.0 spec/workers/my_worker.rb
sidekiq-unique-jobs-3.0.14 spec/support/my_worker.rb
sidekiq-unique-jobs-3.0.13 spec/support/my_worker.rb