ovo.core.logic.job_logic¶
Module Contents¶
Functions¶
Update job status of JobMixin object (Pool, DescriptorJob, …) and return the scheduler result. |
|
Return job duration formatted as 00d:00h:00m. |
API¶
- ovo.core.logic.job_logic.update_job_status(job: ovo.core.database.models.JobMixin, save_on_success: bool = False) bool | None¶
Update job status of JobMixin object (Pool, DescriptorJob, …) and return the scheduler result.
Job result is saved, except when save_on_success is False and job succeeded, this is used in case we want to process the results downstream and save them atomically.
Returns scheduler result (None = in progress, True = succeeded, False = Failed)
- ovo.core.logic.job_logic.format_job_duration(job: ovo.core.database.models.JobMixin)¶
Return job duration formatted as 00d:00h:00m.