Sha256: 4e61f37ce5f0fc0320dc90761d5a6098fdcace4d367721ce8363d3b221873f01

Contents?: true

Size: 420 Bytes

Versions: 4

Compression:

Stored size: 420 Bytes

Contents

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

4 entries across 4 versions & 1 rubygems

Version Path
sidekiq-unique-jobs-5.0.2 spec/jobs/my_unique_job_with_filter_proc.rb
sidekiq-unique-jobs-5.0.1 spec/jobs/my_unique_job_with_filter_proc.rb
sidekiq-unique-jobs-5.0.0 spec/jobs/my_unique_job_with_filter_proc.rb
sidekiq-unique-jobs-4.0.18 spec/jobs/my_unique_job_with_filter_proc.rb