diff --git a/pkg/controller/studyjob/studyjob_controller.go b/pkg/controller/studyjob/studyjob_controller.go index d94ce55127d..470365e3692 100644 --- a/pkg/controller/studyjob/studyjob_controller.go +++ b/pkg/controller/studyjob/studyjob_controller.go @@ -427,7 +427,8 @@ func (r *ReconcileStudyJobController) getJobWorkerStatus(ns string, wid string, jobStatus := commonv1beta1.JobStatus{} err := runtime.DefaultUnstructuredConverter.FromUnstructured(statusMap, &jobStatus) if err != nil { - log.Printf("Error in converting unstructured to status:%v ", err) + log.Printf("Error in converting unstructured to status: %v ", err) + return WorkerStatus{} } if len(jobStatus.Conditions) > 0 { lc := jobStatus.Conditions[len(jobStatus.Conditions)-1]