Saltar al contenido principal

DatafileJob

Job
DashAI.back.job.DatafileJob

Job that fetches a dataset file from an external hub source.

Parameters

kwargs : dict

  • datafile_id: int (DB row id)
  • source_name: str (DatasetSource class name)
  • dataset_source_id: str (source-specific dataset identifier)

Methods

get_job_name(self) -> str

Defined on DatafileJob

Get a descriptive name for the job.

run(self) -> None

Defined on DatafileJob

Run the job.

set_status_as_delivered(self, session_factory: 'sessionmaker' = <function DatafileJob.<lambda> at 0x7f19904de7a0>) -> None

Defined on DatafileJob

No-op: datafile downloads don't use the delivered state.

set_status_as_error(self, session_factory: 'sessionmaker' = <function DatafileJob.<lambda> at 0x7f19904de8c0>) -> None

Defined on DatafileJob

Set the status of the job as error.