Class: Dipa::AgentServices::StartProcessingService

Inherits:
BaseService show all
Defined in:
app/services/dipa/agent_services/start_processing_service.rb

Instance Method Summary collapse

Methods inherited from Dipa::ApplicationService

call

Instance Method Details

#call(agent:) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
17
# File 'app/services/dipa/agent_services/start_processing_service.rb', line 6

def call(agent:)
  super

  _agent.processing!

  Dipa::ServiceJob.set(queue: _agent.coordinator.agent_queue)
                  .perform_later(
                    service_class_name:
                      'Dipa::AgentServices::ProcessingService',
                    kwargs: { agent: _agent }
                  )
end