Sha256: 9964446f4d19661b3dab0dd35148053dec1587c04dcc7febf069f32ac5906f21

Contents?: true

Size: 436 Bytes

Versions: 5

Compression:

Stored size: 436 Bytes

Contents

# frozen_string_literal: true

# :nocov:

class UniqueJobWithFilterMethod
  include Sidekiq::Worker
  sidekiq_options backtrace: 10,
                  lock: :while_executing,
                  queue: :customqueue,
                  retry: 1,
                  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

5 entries across 5 versions & 1 rubygems

Version Path
sidekiq-unique-jobs-6.0.13 examples/unique_job_with_filter_method.rb
sidekiq-unique-jobs-6.0.12 examples/unique_job_with_filter_method.rb
sidekiq-unique-jobs-6.0.11 examples/unique_job_with_filter_method.rb
sidekiq-unique-jobs-6.0.10 examples/unique_job_with_filter_method.rb
sidekiq-unique-jobs-6.0.9 examples/unique_job_with_filter_method.rb