Sha256: 425f97911daac614bdf72184410904029074ef2d8310559962cefbeee5227e68
Contents?: true
Size: 292 Bytes
Versions: 2
Compression:
Stored size: 292 Bytes
Contents
class SimpleWorker include Sidekiq::Worker sidekiq_options unique: :until_executed, unique_args: -> (args) { [args.first] }, queue: :default, default_queue_lock_expiration: 3 * 60 * 60 def perform(_some_arg) sleep 60 end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sidekiq-unique-jobs-4.0.17 | rails_example/app/workers/simple_worker.rb |
sidekiq-unique-jobs-4.0.16 | rails_example/app/workers/simple_worker.rb |