Sha256: 3d4af09c736d08bfb05e28a9bb4e587d7430f92dc6f010a38c4976fbfa75278a
Contents?: true
Size: 395 Bytes
Versions: 1
Compression:
Stored size: 395 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sidekiq-unique-jobs-4.0.7 | spec/jobs/custom_queue_job_with_filter_proc.rb |