Sha256: 3324d9fd9a54cceb2dbdfb95c0abf55ed6ab090f26de7cba92a30e1ea82f3af5

Contents?: true

Size: 281 Bytes

Versions: 6

Compression:

Stored size: 281 Bytes

Contents

class SimpleWorker
  include Sidekiq::Worker
  sidekiq_options unique: :until_executed,
                  unique_args: -> (args) { [args.first] },
                  queue: :default,
                  default_expiration: 3 * 60 * 60

  def perform(_some_arg)
    sleep 60
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sidekiq-unique-jobs-4.0.15 rails_example/app/workers/simple_worker.rb
sidekiq-unique-jobs-4.0.13 rails_example/app/workers/simple_worker.rb
sidekiq-unique-jobs-4.0.12 rails_example/app/workers/simple_worker.rb
sidekiq-unique-jobs-4.0.11 rails_example/app/workers/simple_worker.rb
sidekiq-unique-jobs-4.0.10 rails_example/app/workers/simple_worker.rb
sidekiq-unique-jobs-4.0.9 rails_example/app/workers/simple_worker.rb