Sha256: 43136066a779b74b71911e68f32c3126eac1cbe4c76c52caf2a1fc5ab48daeb4

Contents?: true

Size: 442 Bytes

Versions: 5

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

5 entries across 5 versions & 1 rubygems

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