def _update_job_error(self, job: Job, err: Any): _LOGGER.debug(f"Job {job.job_id} errored, saving to DB") job.status = JobStatus.canceled job.error = err job.progress = None job.save() _LOGGER.warning(f"Job {job.job_id} errored out {err}")
def _report_error(self, job: Job, error: str): self._errored = True self._error = error job.status = JobStatus.error job.error = error job.progress = None job.save()