Package Jobber :: Module jobs :: Class Job
[hide private]
[frames] | no frames]

Class Job

source code

Products.ZenModel.ZenModelRM.ZenModelRM --+
                                          |
                                         Job

Instance Methods [hide private]
 
getUid(self) source code
 
getDescription(self) source code
 
getJobType(self) source code
JobStatus
getStatus(self)
Returns: The JobStatus associated with this job.
source code
 
interrupt(self, why)
Halt the job, for whatever reason.
source code
 
start(self)
This starts off the job.
source code
 
run(self, r)
Should call self.finished(results) when done, where results is one of SUCCESS, FAILURE.
source code
 
finished(self, results)
Called to signify the end of the job.
source code
Class Variables [hide private]
  _relations = "status", ToOne(ToOne, "Products.Jobber.status.Jo...
Method Details [hide private]

getStatus(self)

source code 
Returns: JobStatus
The JobStatus associated with this job.

interrupt(self, why)

source code 

Halt the job, for whatever reason.

This will almost certainly be implemented differently in various subclasses.
Parameters:
  • why (str) - The reason why the build is interrupted

start(self)

source code 
This starts off the job. Returns a Deferred that will fire when the step finishes.

Class Variable Details [hide private]

_relations

Value:
"status", ToOne(ToOne, "Products.Jobber.status.JobStatus", "job"),