Sha256: 36f37e5ddc2dd3d157098f7c2874b5296293899042c9aaf397d2bcf5982bb14b
Contents?: true
Size: 600 Bytes
Versions: 17
Compression:
Stored size: 600 Bytes
Contents
require 'bundler/setup' require 'sequel' require 'que' require 'logger' require 'open-uri' require 'securerandom' Que.logger = Logger.new(STDOUT) Que.logger.level = Logger::INFO Que.connection = Sequel.connect "postgres://localhost/quewebtest", max_connections: Que.worker_count + 1 Que.migrate! Que.mode = :async $stdout.sync = true class FailJob < Que::Job class LameError < StandardError; end def run(arg1, arg2) raise LameError end end class SuccessJob < Que::Job def run(arg1, arg2) sleep 0.5 end end class SlowJob < Que::Job def run(arg1, arg2) sleep 15 end end
Version data entries
17 entries across 17 versions & 1 rubygems