PredictJob
DashAI.back.job.PredictJob
PredictJob class to run the prediction.
Methods
get_job_name(self) -> str
PredictJobGet a descriptive name for the job.
run(self) -> List[Any]
PredictJobRun the job.
set_status_as_delivered(self, session_factory: 'sessionmaker' = <function PredictJob.<lambda> at 0x7f26c40b51b0>) -> None
PredictJobSet the status of the job as delivered.
set_status_as_error(self, session_factory: 'sessionmaker' = <function PredictJob.<lambda> at 0x7f26c40b52d0>) -> None
PredictJobSet the status of the prediction job as error.
report_progress(self, fraction: Optional[float], message: Optional[str] = None) -> None
BaseJobReport the job's progress to the job queue.
Parameters
- fraction: Optional float
- Completion in the range 0-1, or None when the total work is unknown (the frontend then shows an indeterminate bar).
- message: Optional str
- Short description of the current phase.