jade.jobs.job_container_by_key.JobContainerByKey

class jade.jobs.job_container_by_key.JobContainerByKey[source]

Bases: JobContainerInterface

Stores jobs by key which is a namedtuple.

Methods

add_job(job[, key])

Add a job to the configuration.

clear()

Clear all configured jobs.

get_job(name)

Return the job matching name.

get_job_by_key(key)

get_jobs([sort])

Return all jobs.

list_jobs()

Return a list of all jobs.

remove_job([job, key])

Remove a job from the configuration.

shuffle()

Shuffle the order of the jobs.

add_job(job, key=None)[source]

Add a job to the configuration.

Parameters:

job (JobParametersInterface)

clear()[source]

Clear all configured jobs.

remove_job(job=None, key=None)[source]

Remove a job from the configuration.

Parameters:

job (JobParametersInterface)

get_job(name)[source]

Return the job matching name.

Return type:

namedtuple

get_jobs(sort=False)[source]

Return all jobs.

Parameters:

sort (bool)

Return type:

list

shuffle()[source]

Shuffle the order of the jobs.

list_jobs()

Return a list of all jobs.

Returns:

list of JobParametersInterface

Return type:

list