Sha256: 0d36457787ead62589222ad3e01c4d8b9c4e038c1d508cfebe0f04e41ddd6439

Contents?: true

Size: 396 Bytes

Versions: 13

Compression:

Stored size: 396 Bytes

Contents

class CustomQueueJobWithFilterProc < CustomQueueJob
  # slightly contrived example of munging args to the
  # worker and removing a random bit.
  sidekiq_options unique: :until_timeout,
                  unique_args: (lambda do |args|
                    options = args.extract_options!
                    options.delete('random')
                    args + [options]
                  end)
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
sidekiq-unique-jobs-5.0.2 spec/jobs/custom_queue_job_with_filter_proc.rb
sidekiq-unique-jobs-5.0.1 spec/jobs/custom_queue_job_with_filter_proc.rb
sidekiq-unique-jobs-5.0.0 spec/jobs/custom_queue_job_with_filter_proc.rb
sidekiq-unique-jobs-4.0.18 spec/jobs/custom_queue_job_with_filter_proc.rb
sidekiq-unique-jobs-4.0.17 spec/jobs/custom_queue_job_with_filter_proc.rb
sidekiq-unique-jobs-4.0.16 spec/jobs/custom_queue_job_with_filter_proc.rb
sidekiq-unique-jobs-4.0.15 spec/jobs/custom_queue_job_with_filter_proc.rb
sidekiq-unique-jobs-4.0.13 spec/jobs/custom_queue_job_with_filter_proc.rb
sidekiq-unique-jobs-4.0.12 spec/jobs/custom_queue_job_with_filter_proc.rb
sidekiq-unique-jobs-4.0.11 spec/jobs/custom_queue_job_with_filter_proc.rb
sidekiq-unique-jobs-4.0.10 spec/jobs/custom_queue_job_with_filter_proc.rb
sidekiq-unique-jobs-4.0.9 spec/jobs/custom_queue_job_with_filter_proc.rb
sidekiq-unique-jobs-4.0.8 spec/jobs/custom_queue_job_with_filter_proc.rb