Sha256: cbc3a6e554bc5a45fccc8a7ac4c8b7ae2c477e6f71fb165f443fbe8eecf304cd

Contents?: true

Size: 257 Bytes

Versions: 6

Compression:

Stored size: 257 Bytes

Contents

# frozen_string_literal: true

# :nocov:

require_relative 'custom_queue_job'

class CustomQueueJobWithFilterMethod < CustomQueueJob
  sidekiq_options unique: :until_executed, unique_args: :args_filter

  def self.args_filter(args)
    args.first
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

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