Sha256: ee2805d29b1e62439b415c693aad4618649ac1fc76632cd0b002fb568f853a21

Contents?: true

Size: 460 Bytes

Versions: 11

Compression:

Stored size: 460 Bytes

Contents

# frozen_string_literal: true

# :nocov:

class MyUniqueJobWithFilterProc
  include Sidekiq::Worker
  sidekiq_options backtrace: true,
                  lock: :until_executed,
                  queue: :customqueue,
                  retry: true,
                  unique_args: (lambda do |args|
                    options = args.extract_options!
                    [args.first, options['type']]
                  end)

  def perform(*)
    # NO-OP
  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_proc.rb
sidekiq-unique-jobs-6.0.7 examples/my_unique_job_with_filter_proc.rb
sidekiq-unique-jobs-6.0.6 examples/my_unique_job_with_filter_proc.rb
sidekiq-unique-jobs-6.0.5 examples/my_unique_job_with_filter_proc.rb
sidekiq-unique-jobs-6.0.4 examples/my_unique_job_with_filter_proc.rb
sidekiq-unique-jobs-6.0.3 examples/my_unique_job_with_filter_proc.rb
sidekiq-unique-jobs-6.0.2 examples/my_unique_job_with_filter_proc.rb
sidekiq-unique-jobs-6.0.1 examples/my_unique_job_with_filter_proc.rb
sidekiq-unique-jobs-6.0.0 examples/my_unique_job_with_filter_proc.rb
sidekiq-unique-jobs-6.0.0.rc8 examples/my_unique_job_with_filter_proc.rb
sidekiq-unique-jobs-6.0.0.rc7 examples/my_unique_job_with_filter_proc.rb