ComponentDownloadJob
DashAI.back.job.ComponentDownloadJob
Download the artifacts required by a downloadable component.
Parameters
kwargs : dict
Must contain component_name (the component class name).
Methods
get_job_name(self) -> str
ComponentDownloadJobReturn a descriptive name for the job.
Returns
- str
- A human-readable name including the component name.
run(self) -> None
ComponentDownloadJobResolve the component and download its artifacts, reporting progress.
set_status_as_delivered(self) -> None
ComponentDownloadJobNo dedicated DB entity; nothing to mark as delivered.
set_status_as_error(self) -> None
ComponentDownloadJobNo dedicated DB entity; nothing to mark 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.