Archived community.zenoss.org | full text search
Skip navigation
Currently Being Moderated

7.2 Running a Job

VERSION 1 
Created on: Sep 14, 2009 11:46 AM by Zenoss API - Last Modified:  Sep 14, 2009 11:46 AM by Zenoss API

#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)
Comments (0)