Sha256: c09df8fa21e76767b96dc5cdcccf9a3d63f89c13a95a0a123cf71b662e09d4a6

Contents?: true

Size: 462 Bytes

Versions: 6

Compression:

Stored size: 462 Bytes

Contents

# frozen_string_literal: true

# :nocov:

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

  def perform(*)
    # NO-OP
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

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