Sha256: 4e33f56e50719e575baaf06d0e6bde95d4d43e57669eb6553282022e2ef459dd

Contents?: true

Size: 336 Bytes

Versions: 1

Compression:

Stored size: 336 Bytes

Contents

class UniqueJobWithNilUniqueArgs
  include Sidekiq::Worker
  sidekiq_options queue: :customqueue,
                  retry: true,
                  backtrace: true,
                  unique: :until_executed,
                  unique_args: :unique_args

  def perform(*)
    # NO-OP
  end

  def self.unique_args(_args)
    nil
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sidekiq-unique-jobs-5.0.2 spec/jobs/unique_job_with_nil_unique_args.rb