Class: Runners::Kubernetes::RunTask

Inherits:
Object
  • Object
show all
Defined in:
app/services/runners/kubernetes/run_task.rb

Constant Summary collapse

NFS_NAME =
"nfs"

Instance Method Summary collapse

Instance Method Details

#perform(task:, slot:, runner_id:) ⇒ Object



8
9
10
11
12
# File 'app/services/runners/kubernetes/run_task.rb', line 8

def perform(task:, slot:, runner_id:)
  create_pod(task: task, node: slot.node, runner_id: runner_id)
rescue KubernetesClient::NetworkError => e then
  raise Node::NodeConnectionError, "#{e.class}: #{e.message}"
end