Sha256: 04e16117fd4242a633ef54e3dc60add5ca220b38c706b37602ee8545d9d37b83

Contents?: true

Size: 366 Bytes

Versions: 9

Compression:

Stored size: 366 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|
    Sidekiq.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

9 entries across 9 versions & 1 rubygems

Version Path
sidekiq-unique-jobs-5.0.0 spec/jobs/until_executed_job.rb
sidekiq-unique-jobs-4.0.18 spec/jobs/until_executed_job.rb
sidekiq-unique-jobs-4.0.17 spec/jobs/until_executed_job.rb
sidekiq-unique-jobs-4.0.16 spec/jobs/until_executed_job.rb
sidekiq-unique-jobs-4.0.15 spec/jobs/until_executed_job.rb
sidekiq-unique-jobs-4.0.13 spec/jobs/until_executed_job.rb
sidekiq-unique-jobs-4.0.12 spec/jobs/until_executed_job.rb
sidekiq-unique-jobs-4.0.11 spec/jobs/until_executed_job.rb
sidekiq-unique-jobs-4.0.10 spec/jobs/until_executed_job.rb