Sha256: 3f71b40ca204b75936bd8f80e089e075f3f59ebf312327772224a69ab4a4a8ad

Contents?: true

Size: 460 Bytes

Versions: 5

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

5 entries across 5 versions & 1 rubygems

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