Sha256: 5f15e85eded7c032237a9799de28cf8baeb3248041668b37bb81fffc79bbb051

Contents?: true

Size: 479 Bytes

Versions: 21

Compression:

Stored size: 479 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
  def max_attempts; 1; end
end

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

Version data entries

21 entries across 21 versions & 5 rubygems

Version Path
delayed_job-2.0.8 spec/sample_jobs.rb
delayed_job_csi-2.0.7 spec/sample_jobs.rb
delayed_job_with_named_queues-2.0.7.14 spec/sample_jobs.rb
delayed_job_with_named_queues-2.0.7.13 spec/sample_jobs.rb
delayed_job_with_named_queues-2.0.7.12 spec/sample_jobs.rb
delayed_job_with_named_queues-2.0.7.11 spec/sample_jobs.rb
delayed_job_with_named_queues-2.0.7.10 spec/sample_jobs.rb
delayed_job_with_named_queues-2.0.7.9 spec/sample_jobs.rb
delayed_job_with_named_queues-2.0.7.8 spec/sample_jobs.rb
delayed_job_with_named_queues-2.0.7.7 spec/sample_jobs.rb
delayed_job_with_named_queues-2.0.7.6 spec/sample_jobs.rb
delayed-job-ajaycb-2.0.10 spec/sample_jobs.rb
delayed_job_with_named_queues-2.0.7.5 spec/sample_jobs.rb
delayed_job_with_named_queues-2.0.7.4 spec/sample_jobs.rb
delayed_job_with_named_queues-2.0.7.3 spec/sample_jobs.rb
delayed_job_with_named_queues-2.0.7.2 spec/sample_jobs.rb
delayed_job_with_named_queues-2.0.7.1 spec/sample_jobs.rb
yetanothernguyen-delayed_job-0.0.1 spec/sample_jobs.rb
delayed_job-2.0.7 spec/sample_jobs.rb
delayed_job-2.0.6 spec/sample_jobs.rb