Saltar al contenido principal

PipelineJob

Job
DashAI.back.job.PipelineJob

Abstract class for all Jobs.

Methods

run(self, component_registry: 'ComponentRegistry' = <function PipelineJob.<lambda> at 0x7f26c40b4dc0>) -> None

Defined on PipelineJob

Run the job.

set_status_as_delivered(self) -> None

Defined on PipelineJob

Set the status of the job as delivered.

get_job_name(self) -> str

Defined on BaseJob

Get a descriptive name for the job.

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.

set_status_as_error(self) -> None

Defined on BaseJob

Set the status of the job as error.