Sha256: 03ff16ce4536fe99e4b5c81d4c3eb0ea6372f9bf656e68b3c9cc09ccb1c47c84

Contents?: true

Size: 391 Bytes

Versions: 16

Compression:

Stored size: 391 Bytes

Contents

# frozen_string_literal: true

# :nocov:

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

  def perform(conditional = nil)
    [conditional]
  end

  def self.unique_args; end
end

Version data entries

16 entries across 16 versions & 1 rubygems

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