Sha256: 0fe1599eba0e96667cf42e849eb67244c1e078034df9708b90fca63025fc4bcb

Contents?: true

Size: 358 Bytes

Versions: 2

Compression:

Stored size: 358 Bytes

Contents

class UntilExecutedJob
  include Sidekiq::Worker
  sidekiq_options queue: :working, retry: 1, backtrace: 10
  sidekiq_options unique: :until_executed

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

  def perform(*)
    # NO-OP
  end

  def after_unlock
    # NO OP
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sidekiq-unique-jobs-5.0.2 spec/jobs/until_executed_job.rb
sidekiq-unique-jobs-5.0.1 spec/jobs/until_executed_job.rb