Sha256: 994e36bd5bc5011b4c710c5e5fbf613b6caaaf5935a2340af869f7764093e00d
Contents?: true
Size: 568 Bytes
Versions: 14
Compression:
Stored size: 568 Bytes
Contents
class ReleaseJob < Quebert::Job def perform release! end end class DeleteJob < Quebert::Job def perform delete! end end class BuryJob < Quebert::Job def perform bury! end end class TimeoutJob < Quebert::Job def initialize super @ttr = 1 end def perform # 10 second task should definitely raise a Job::Timeout exception sleep(10) end end class Adder < Quebert::Job def perform(*args) args.inject(0){|sum, n| sum = sum + n} end end class Exceptional < Quebert::Job def perform raise Exception end end
Version data entries
14 entries across 14 versions & 1 rubygems