load_job

Contents

load_job#

rapidtools.jobs.load_job(job: Job | Mapping[str, Any] | str | Path) → Job[source]#

Accept a job in any of its forms and return a Job.

Parameters:

job (Job | Mapping[str, Any] | str | Path) – A job object, a decoded job document, or the path of a job file.

Returns:

Job – The validated job.

Raises:

JobError – If the job cannot be read or is invalid.