Package qb :: Package backend :: Module pythonChildJob
[hide private]
[frames] | no frames]

Source Code for Module qb.backend.pythonChildJob

 1  ''' 
 2  A base class for any job that uses the qube qb.pythonChildBackEnd modules 
 3  ''' 
 4  #====================================== 
 5  #  $Revision: #1 $ 
 6  #  $Change: 8484 $ 
 7  #====================================== 
 8   
 9   
10  import qb 
11   
12   
13   
14 -class PythonChildJob(qb.Job):
15 - def __init__(self, dev=False):
16 ''' 17 @param dev: Set the 'dev' value for the Qube job, enables debug output on the farm. 18 @type dev: bool 19 20 G{classtree PythonChildJob} 21 ''' 22 super(PythonChildJob, self).__init__() 23 24 pkg = self['package'] 25 26 pkg['dev'] = dev 27 28 pkg['pyExecutable'] = '' 29 30 pkg['jobSetupCmds'] = [] 31 pkg['jobTeardownCmds'] = []
32
33 - def _getJobSetupCmds(self):
34 ''' 35 Build a list of commands necessary to do all the prep for the job 36 ''' 37 return []
38
39 - def _getJobTeardownCmds(self):
40 ''' 41 Build a list of commands necessary to do all the prep for the job 42 ''' 43 return []
44