Class: Runners::Kubernetes::FetchLogs
- Inherits:
-
Object
- Object
- Runners::Kubernetes::FetchLogs
- Defined in:
- app/services/runners/kubernetes/fetch_logs.rb
Instance Method Summary collapse
Instance Method Details
#perform(task:) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'app/services/runners/kubernetes/fetch_logs.rb', line 6 def perform(task:) CreateClient.new.perform(node: task.slot.node).fetch_pod_logs(pod_name: task.runner_id) rescue KubernetesClient::PodNotFoundError => e raise Runners::RunnerIdNotFoundError, e. rescue KubernetesClient::LogsNotFoundError Rails.logger.error("Error on fetching kubernetes pod logs") "Logs not found" end |