flip_api.project_services.reimport_imaging_project_studies

Functions

reimport_imaging_project_studies(→ None)

Checks for projects with unimported studies and reimports them if they are eligible (i.e. enough time has passed

reimport_imaging_project_studies_scheduled_task(→ None)

Scheduled task to reimport imaging project studies.

Module Contents

flip_api.project_services.reimport_imaging_project_studies.reimport_imaging_project_studies(db: sqlmodel.Session) None

Checks for projects with unimported studies and reimports them if they are eligible (i.e. enough time has passed since the last reimport, and the max reimport count has not been reached).

Parameters:

db (Session) – The database session.

Returns:

None

Raises:

HTTPException – If an error occurs during the reimport process.

flip_api.project_services.reimport_imaging_project_studies.reimport_imaging_project_studies_scheduled_task() None

Scheduled task to reimport imaging project studies. This function is called by the scheduler.

Raises:

HTTPException – If an error occurs during the reimport process.