dmd.JobManager
is a tool that, predictably, manages jobs. To add a job to the queue to be run by the zenjobs daemon, call dmd.JobManager.addJob
, passing in the job class as the first argument, followed by arguments to the job's constructor. For example, to run the example CleanHistoryJob
:
dmd.JobManager.addJob(CleanHistoryJob, agedDays=7)