Class: Runners::Kubernetes::FetchExecutionInfo
- Inherits:
-
Object
- Object
- Runners::Kubernetes::FetchExecutionInfo
- Defined in:
- app/services/runners/kubernetes/fetch_execution_info.rb
Instance Method Summary collapse
Instance Method Details
#perform(task:) ⇒ Object
6 7 8 9 10 11 12 |
# File 'app/services/runners/kubernetes/fetch_execution_info.rb', line 6 def perform(task:) pod = CreateClient.new.perform(node: task.slot.node).fetch_pod(pod_name: task.runner_id) CreateExecutionInfo.new.perform(pod: pod) rescue KubernetesClient::PodNotFoundError => e raise Runners::RunnerIdNotFoundError, e. end |