Sha256: 35b8f38010f095d807cd5c476de551844565c1f8120b3950d504b845000c2f57

Contents?: true

Size: 442 Bytes

Versions: 11

Compression:

Stored size: 442 Bytes

Contents

# frozen_string_literal: true

# :nocov:

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

  def perform(*)
    # NO-OP
  end

  def self.filtered_args(args)
    options = args.extract_options!
    [args.first, options['type']]
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
sidekiq-unique-jobs-6.0.8 examples/my_unique_job_with_filter_method.rb
sidekiq-unique-jobs-6.0.7 examples/my_unique_job_with_filter_method.rb
sidekiq-unique-jobs-6.0.6 examples/my_unique_job_with_filter_method.rb
sidekiq-unique-jobs-6.0.5 examples/my_unique_job_with_filter_method.rb
sidekiq-unique-jobs-6.0.4 examples/my_unique_job_with_filter_method.rb
sidekiq-unique-jobs-6.0.3 examples/my_unique_job_with_filter_method.rb
sidekiq-unique-jobs-6.0.2 examples/my_unique_job_with_filter_method.rb
sidekiq-unique-jobs-6.0.1 examples/my_unique_job_with_filter_method.rb
sidekiq-unique-jobs-6.0.0 examples/my_unique_job_with_filter_method.rb
sidekiq-unique-jobs-6.0.0.rc8 examples/my_unique_job_with_filter_method.rb
sidekiq-unique-jobs-6.0.0.rc7 examples/my_unique_job_with_filter_method.rb