Sha256: 1b321db328f0953a63442bdb9cbe0ba013d6e8a5e5543f88b8b8eeb0577ee8fe

Contents?: true

Size: 558 Bytes

Versions: 4

Compression:

Stored size: 558 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
    fail
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
quebert-3.0.3 spec/support/jobs.rb
quebert-3.0.2 spec/support/jobs.rb
quebert-3.0.1 spec/support/jobs.rb
quebert-3.0.0 spec/support/jobs.rb