diff --git a/cmd/metricscollector/main.go b/cmd/metricscollector/main.go index 97099e527b5..b4f10953227 100644 --- a/cmd/metricscollector/main.go +++ b/cmd/metricscollector/main.go @@ -78,8 +78,7 @@ func main() { } mls, err := mc.CollectWorkerLog(*workerID, *workerKind, screp.StudyConfig.ObjectiveValueName, screp.StudyConfig.Metrics, *namespace) if err != nil { - log.Printf("Failed to collect logs: %v", err) - return + log.Fatalf("Failed to collect logs: %v", err) } rmreq := &api.ReportMetricsLogsRequest{ StudyId: *studyID, @@ -87,8 +86,7 @@ func main() { } _, err = c.ReportMetricsLogs(ctx, rmreq) if err != nil { - log.Printf("Failed to Report logs: %v", err) - return + log.Fatalf("Failed to Report logs: %v", err) } log.Printf("Metrics reported. :\n%v", mls) return diff --git a/manifests/studyjobcontroller/metricsControllerConfigMap.yaml b/manifests/studyjobcontroller/metricsControllerConfigMap.yaml index 649a9976b24..ae64d7d463a 100644 --- a/manifests/studyjobcontroller/metricsControllerConfigMap.yaml +++ b/manifests/studyjobcontroller/metricsControllerConfigMap.yaml @@ -16,6 +16,7 @@ data: failedJobsHistoryLimit: 1 jobTemplate: spec: + backoffLimit: 0 template: spec: serviceAccountName: metrics-collector