Class: Runners::Docker::FetchTaskContainer

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

Instance Method Summary collapse

Instance Method Details

#perform(task:) ⇒ Object



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

def perform(task:)
  ::Docker::Container.get(
    task.runner_id,
    { all: true },
    CreateConnection.new.perform(node: task.slot.node)
  )
end