Saltar al contenido principal

ComponentDownloadJob

Job
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

Defined on ComponentDownloadJob

Return a descriptive name for the job.

Returns

str
A human-readable name including the component name.

run(self) -> None

Defined on ComponentDownloadJob

Resolve the component and download its artifacts, reporting progress.

set_status_as_delivered(self) -> None

Defined on ComponentDownloadJob

No dedicated DB entity; nothing to mark as delivered.

set_status_as_error(self) -> None

Defined on ComponentDownloadJob

No dedicated DB entity; nothing to mark as error.

report_progress(self, fraction: Optional[float], message: Optional[str] = None) -> None

Defined on BaseJob

Report 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.