Developer's Guide

  • Docs Home
  • Community Home

2. Running a Job

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)