Sha256: a8a380d6e094ce06336e336d5a0fa3298a534a12ed8be4bfd1540aa7b31a729d

Contents?: true

Size: 393 Bytes

Versions: 6

Compression:

Stored size: 393 Bytes

Contents

# frozen_string_literal: true

# :nocov:

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

  def perform(conditional = nil)
    [conditional]
  end

  def self.unique_args; end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sidekiq-unique-jobs-6.0.0.rc6 examples/unique_job_with_conditional_parameter.rb
sidekiq-unique-jobs-6.0.0.rc5 examples/unique_job_with_conditional_parameter.rb
sidekiq-unique-jobs-6.0.0.rc4 examples/unique_job_with_conditional_parameter.rb
sidekiq-unique-jobs-6.0.0.rc3 examples/unique_job_with_conditional_parameter.rb
sidekiq-unique-jobs-6.0.0.rc2 examples/unique_job_with_conditional_parameter.rb
sidekiq-unique-jobs-6.0.0.rc1 examples/unique_job_with_conditional_parameter.rb