Module: Async::Background::Job
- Defined in:
- lib/async/background/job.rb
Defined Under Namespace
Modules: ClassMethods
Classes: Options
Constant Summary
collapse
- DEFAULT_TIMEOUT =
120
- BACKOFFS =
%i[fixed linear exponential].freeze
- DEFAULT_JITTER_FOR =
{ fixed: 0.0, linear: 0.0, exponential: 0.5 }.freeze
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.included(base) ⇒ Object
51
52
53
|
# File 'lib/async/background/job.rb', line 51
def self.included(base)
base.extend(ClassMethods)
end
|
Instance Method Details
69
70
71
|
# File 'lib/async/background/job.rb', line 69
def perform(*)
raise NotImplementedError, "#{self.class} must implement #perform"
end
|