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