Class: Sidekiq::Portal::JobRunner Private

Inherits:
Object
  • Object
show all
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.

Since:

  • 0.1.0

Defined Under Namespace

Modules: Builder

Instance Method Summary collapse

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.

Parameters:

  • retry_count (Integer)

Since:

  • 0.1.0



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.

Parameters:

Since:

  • 0.1.0



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