Class: Runners::Docker::FetchExecutionInfo

Inherits:
Object
  • Object
show all
Defined in:
app/services/runners/docker/fetch_execution_info.rb

Instance Method Summary collapse

Instance Method Details

#perform(task:) ⇒ Object



6
7
8
9
10
11
12
13
14
# File 'app/services/runners/docker/fetch_execution_info.rb', line 6

def perform(task:)
  container = Runners::Docker::FetchTaskContainer
              .new
              .perform(task: task)

  CreateExecutionInfo.new.perform(container: container)
rescue ::Docker::Error::NotFoundError => e
  raise Runners::RunnerIdNotFoundError, e.message
end