Sha256: 3b62389db5e421c719363eaa6a8c9acc9d1d8099b29bb7a8cbc8ed96d1dfed9a

Contents?: true

Size: 378 Bytes

Versions: 16

Compression:

Stored size: 378 Bytes

Contents

# frozen_string_literal: true

# :nocov:

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

  def perform(args)
    [args]
  end

  def self.unique_args(_args)
    nil
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
sidekiq-unique-jobs-6.0.13 examples/unique_job_with_nil_unique_args.rb
sidekiq-unique-jobs-6.0.12 examples/unique_job_with_nil_unique_args.rb
sidekiq-unique-jobs-6.0.11 examples/unique_job_with_nil_unique_args.rb
sidekiq-unique-jobs-6.0.10 examples/unique_job_with_nil_unique_args.rb
sidekiq-unique-jobs-6.0.9 examples/unique_job_with_nil_unique_args.rb
sidekiq-unique-jobs-6.0.8 examples/unique_job_with_nil_unique_args.rb
sidekiq-unique-jobs-6.0.7 examples/unique_job_with_nil_unique_args.rb
sidekiq-unique-jobs-6.0.6 examples/unique_job_with_nil_unique_args.rb
sidekiq-unique-jobs-6.0.5 examples/unique_job_with_nil_unique_args.rb
sidekiq-unique-jobs-6.0.4 examples/unique_job_with_nil_unique_args.rb
sidekiq-unique-jobs-6.0.3 examples/unique_job_with_nil_unique_args.rb
sidekiq-unique-jobs-6.0.2 examples/unique_job_with_nil_unique_args.rb
sidekiq-unique-jobs-6.0.1 examples/unique_job_with_nil_unique_args.rb
sidekiq-unique-jobs-6.0.0 examples/unique_job_with_nil_unique_args.rb
sidekiq-unique-jobs-6.0.0.rc8 examples/unique_job_with_nil_unique_args.rb
sidekiq-unique-jobs-6.0.0.rc7 examples/unique_job_with_nil_unique_args.rb