Class: Sidekiq::Portal::JobRunner Private
- Inherits:
-
Object
- Object
- Sidekiq::Portal::JobRunner
- Defined in:
- lib/portal/job_runner.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Defined Under Namespace
Modules: Builder
Instance Method Summary collapse
- #initialize(retry_count, retry_on_exceptions) ⇒ void constructor private
- #run(job) ⇒ Object private
Constructor Details
#initialize(retry_count, retry_on_exceptions) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
14 15 16 17 |
# File 'lib/portal/job_runner.rb', line 14 def initialize(retry_count, retry_on_exceptions) @retry_count = retry_count @retry_on_exceptions = retry_on_exceptions end |
Instance Method Details
#run(job) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
23 24 25 26 27 |
# File 'lib/portal/job_runner.rb', line 23 def run(job) return unless time_has_come?(job) actualize_internal_job_state(job) perform(job) end |