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

Version Path
quebert-2.0.4 spec/support/jobs.rb
quebert-2.0.3 spec/support/jobs.rb
quebert-2.0.2 spec/support/jobs.rb
quebert-2.0.1 spec/support/jobs.rb
quebert-2.0.0 spec/support/jobs.rb
quebert-1.12.0 spec/support/jobs.rb
quebert-1.11.0 spec/support/jobs.rb
quebert-1.0.9 spec/support/jobs.rb
quebert-1.0.8 spec/support/jobs.rb
quebert-1.0.7 spec/support/jobs.rb
quebert-1.0.6 spec/support/jobs.rb
quebert-1.0.5 spec/support/jobs.rb
quebert-1.0.4 spec/support/jobs.rb
quebert-1.0.2 spec/support/jobs.rb