Sha256: 92fb0bdba7627f305208ba08f6695e8b18f234e8ac1abed1c998709b2cdbcf6b

Contents?: true

Size: 397 Bytes

Versions: 1

Compression:

Stored size: 397 Bytes

Contents

class AfterYieldWorker
  include Sidekiq::Worker
  sidekiq_options queue: :unlock_ordering, retry: 1, backtrace: 10
  sidekiq_options unique: true, unique_lock: :until_executed

  sidekiq_retries_exhausted do |msg|
    Sidekiq.logger.warn "Failed #{msg['class']} with #{msg['args']}: #{msg['error_message']}"
  end

  def perform(*)
    # NO-OP
  end

  def after_unlock
    fail 'HELL'
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sidekiq-unique-jobs-4.0.0 spec/workers/after_yield_worker.rb