jade.jobs.job_container_by_name.JobContainerByName¶
- class jade.jobs.job_container_by_name.JobContainerByName[source]¶
Bases:
JobContainerInterface
Stores jobs by name, which must be unique.
Methods
add_job
(job)Add a job to the configuration.
clear
()Clear all configured jobs.
get_job
(name)Return the job matching name.
get_jobs
([sort])Return all jobs.
Return a list of all jobs.
remove_job
(job)Remove a job from the configuration.
shuffle
()Shuffle the order of the jobs.
- add_job(job)[source]¶
Add a job to the configuration.
- Parameters:
job (JobParametersInterface)
- remove_job(job)[source]¶
Remove a job from the configuration.
- Parameters:
job (JobParametersInterface)
- list_jobs()¶
Return a list of all jobs.
- Returns:
list of JobParametersInterface
- Return type:
list