Class: Dipa::AgentServices::ProcessingService

Inherits:
BaseService show all
Includes:
Services::ProcessFailureHandling
Defined in:
app/services/dipa/agent_services/processing_service.rb

Constant Summary collapse

TIMER_TASK_SLEEP_START_DURATION =
2
TIMER_TASK_MAX_SLEEP_DURATION =
120
TIMER_TASK_SLEEP_DURATION_INCREASE_FACTOR =
1.1
TIMER_TASK_ARGS =
{
  execution_interval: TIMER_TASK_SLEEP_START_DURATION
}.freeze

Constants included from Services::ProcessFailureHandling

Services::ProcessFailureHandling::STATES_TO_CHECK_FOR

Instance Method Summary collapse

Methods inherited from Dipa::ApplicationService

call

Instance Method Details

#call(agent:) ⇒ Object



15
16
17
18
19
20
21
# File 'app/services/dipa/agent_services/processing_service.rb', line 15

def call(agent:)
  super

  _process!
ensure
  _post_processing
end