Public Member Functions | |
def | __init__ |
def | CheckBatchScript |
def | DefineOptions |
def | ManageOutputDir |
def | mkdir |
def | ParseOptions |
def | PrepareJob |
def | PrepareJobs |
def | PrepareJobUser |
def | RunningMode |
def | SubmitJob |
def | SubmitJobs |
Public Attributes | |
listOfJobs_ | |
outputDir_ | |
parser_ | |
remoteOutputDir_ | |
remoteOutputFile_ | |
This class manages batch jobs Used in batch scripts Colin Bernet 2008
Definition at line 13 of file batchmanager.py.
def batchmanager.BatchManager.__init__ | ( | self | ) |
Definition at line 23 of file batchmanager.py.
References batchmanager.BatchManager.DefineOptions().
def batchmanager.BatchManager.CheckBatchScript | ( | self, | |
batchScript | |||
) |
def batchmanager.BatchManager.DefineOptions | ( | self | ) |
Definition at line 27 of file batchmanager.py.
Referenced by batchmanager.BatchManager.__init__().
def batchmanager.BatchManager.ManageOutputDir | ( | self | ) |
Definition at line 124 of file batchmanager.py.
def batchmanager.BatchManager.mkdir | ( | self, | |
dirname | |||
) |
Definition at line 262 of file batchmanager.py.
References if().
Referenced by batchmanager.BatchManager.PrepareJob().
def batchmanager.BatchManager.ParseOptions | ( | self | ) |
Definition at line 52 of file batchmanager.py.
References reco::parser::MethodInvoker.args_, reco::parser::ExpressionQuaterOperator< Op >.args_, ExternalLHEProducer.args_, Json::Path.args_, pftools::CalibCompare.options_, and pftools::Exercises3.options_.
def batchmanager.BatchManager.PrepareJob | ( | self, | |
value, | |||
dirname = None |
|||
) |
Prepare a job for a given value. calls PrepareJobUser, which should be overloaded by the user.
Definition at line 153 of file batchmanager.py.
References join(), TFileService.mkdir(), TFileDirectory.mkdir(), batchmanager.BatchManager.mkdir(), L1GtVhdlWriter.outputDir_, batchmanager.BatchManager.outputDir_, L1GtVhdlWriterCore.outputDir_, LaserSorter.outputDir_, and batchmanager.BatchManager.PrepareJobUser().
def batchmanager.BatchManager.PrepareJobs | ( | self, | |
listOfValues, | |||
listOfDirNames = None |
|||
) |
Definition at line 108 of file batchmanager.py.
def batchmanager.BatchManager.PrepareJobUser | ( | self, | |
value | |||
) |
Hook allowing user to define how one of his jobs should be prepared.
Definition at line 168 of file batchmanager.py.
Referenced by batchmanager.BatchManager.PrepareJob().
def batchmanager.BatchManager.RunningMode | ( | self, | |
batch | |||
) |
Returns "LXPLUS", "PSI", "LOCAL", or None, "LXPLUS" : batch command is bsub, and logged on lxplus "PSI" : batch command is qsub, and logged to t3uiXX "IC" : batch command is qsub, and logged to hep.ph.ic.ac.uk "LOCAL" : batch command is nohup. In all other cases, a CmsBatchException is raised
Definition at line 271 of file batchmanager.py.
Referenced by heppy_batch.MyBatchManager.PrepareJobUser(), and batchmanager.BatchManager.SubmitJobs().
def batchmanager.BatchManager.SubmitJob | ( | self, | |
jobDir | |||
) |
Hook for job submission.
Definition at line 226 of file batchmanager.py.
Referenced by batchmanager.BatchManager.SubmitJobs().
def batchmanager.BatchManager.SubmitJobs | ( | self, | |
waitingTimeInSec = 0 |
|||
) |
Submit all jobs. Possibly wait between each job
Definition at line 173 of file batchmanager.py.
References if(), batchmanager.BatchManager.listOfJobs_, L1GtVhdlWriter.outputDir_, batchmanager.BatchManager.outputDir_, L1GtVhdlWriterCore.outputDir_, LaserSorter.outputDir_, batchmanager.BatchManager.RunningMode(), and batchmanager.BatchManager.SubmitJob().
batchmanager.BatchManager.listOfJobs_ |
Definition at line 110 of file batchmanager.py.
Referenced by batchmanager.BatchManager.SubmitJobs().
batchmanager.BatchManager.outputDir_ |
Definition at line 138 of file batchmanager.py.
Referenced by batchmanager.BatchManager.PrepareJob(), valtools.webpage.readCaptions(), and batchmanager.BatchManager.SubmitJobs().
batchmanager.BatchManager.parser_ |
Definition at line 30 of file batchmanager.py.
batchmanager.BatchManager.remoteOutputDir_ |
Definition at line 55 of file batchmanager.py.
batchmanager.BatchManager.remoteOutputFile_ |
Definition at line 103 of file batchmanager.py.