Sha256: cdd3dc1696cf105872ca95ac832815e2c6a4f1a5c950086a28d20a50c970d34b

Contents?: true

Size: 452 Bytes

Versions: 15

Compression:

Stored size: 452 Bytes

Contents

class SimpleJob
  cattr_accessor :runs; self.runs = 0
  def perform; @@runs += 1; end
end

class ErrorJob
  cattr_accessor :runs; self.runs = 0
  def perform; raise 'did not work'; end
end             

class LongRunningJob
  def perform; sleep 250; end
end

class OnPermanentFailureJob < SimpleJob
  def on_permanent_failure
  end
end

module M
  class ModuleJob
    cattr_accessor :runs; self.runs = 0
    def perform; @@runs += 1; end    
  end
end

Version data entries

15 entries across 15 versions & 6 rubygems

Version Path
topprospect-delayed_job-2.0.9 spec/sample_jobs.rb
topprospect-delayed_job-2.0.8 spec/sample_jobs.rb
topprospect-delayed_job-2.0.7 spec/sample_jobs.rb
topprospect-delayed_job-2.0.6 spec/sample_jobs.rb
topprospect-delayed_job-2.0.5 spec/sample_jobs.rb
emipair-delayed_job-2.0.3.1 spec/sample_jobs.rb
delayed_job-2.0.4 spec/sample_jobs.rb
jmcnevin-delayed_job-2.0.6 spec/sample_jobs.rb
jmcnevin-delayed_job-2.0.5 spec/sample_jobs.rb
jmcnevin-delayed_job-2.0.4 spec/sample_jobs.rb
undelayed_job-0.0.1 spec/sample_jobs.rb
opsb-delayed_job-2.0.3 spec/sample_jobs.rb
delayed_job-2.1.0.pre spec/sample_jobs.rb
delayed_job-2.0.3 spec/sample_jobs.rb
delayed_job-2.0.2 spec/sample_jobs.rb