code: def __get_job_status(self):
          
          # Figure out status and return it
          job = self.__get_job()
  
          if "succeeded" in job.obj["status"] and job.obj["status"]["succeeded"] > 0:
              job.scale(replicas=0)
              if self.print_pod_logs_on_exit:
                  self.__print_pod_logs()
              if self.delete_on_success:
                  self.__delete_job_cascade(job)
              return "SUCCEEDED"
  
          if "failed" in job.obj["status"]:
              failed_cnt = job.obj["status"]["failed"]
              self.__logger.debug("Kubernetes job " + self.uu_name
                                  + " status.failed: " + str(failed_cnt))
              if self.print_pod_logs_on_exit:
                  self.__print_pod_logs()
              if failed_cnt > self.max_retrials:
                  job.scale(replicas=0)  # avoid more retrials
                  return "FAILED"
          return "RUNNING"
docs: Return the Kubernetes job status