Public Member Functions | |
def | __init__ (self) |
def | CheckBatchScript (self, batchScript) |
def | DefineOptions (self) |
def | ManageOutputDir (self) |
def | mkdir (self, dirname) |
def | ParseOptions (self) |
def | PrepareJob (self, value, dirname=None) |
def | PrepareJobs (self, listOfValues, listOfDirNames=None) |
def | PrepareJobUser (self, value) |
def | RunningMode (self, batch) |
def | SubmitJob (self, jobDir) |
def | SubmitJobArray (self, numbOfJobs=1) |
def | SubmitJobs (self, waitingTimeInSec=0) |
Public Attributes | |
listOfJobs_ | |
outputDir_ | |
parser_ | |
remoteOutputDir_ | |
remoteOutputFile_ | |
This class manages batch jobs Used in batch scripts Colin Bernet 2008
Definition at line 16 of file batchmanager.py.
def batchmanager.BatchManager.__init__ | ( | self | ) |
Definition at line 26 of file batchmanager.py.
References batchmanager.BatchManager.DefineOptions().
def batchmanager.BatchManager.CheckBatchScript | ( | self, | |
batchScript | |||
) |
Definition at line 206 of file batchmanager.py.
References if(), TritonClient.options_, and print().
def batchmanager.BatchManager.DefineOptions | ( | self | ) |
Definition at line 30 of file batchmanager.py.
Referenced by batchmanager.BatchManager.__init__().
def batchmanager.BatchManager.ManageOutputDir | ( | self | ) |
Definition at line 128 of file batchmanager.py.
References TritonClient.options_, and print().
def batchmanager.BatchManager.mkdir | ( | self, | |
dirname | |||
) |
Definition at line 236 of file batchmanager.py.
Referenced by batchmanager.BatchManager.PrepareJob().
def batchmanager.BatchManager.ParseOptions | ( | self | ) |
Definition at line 57 of file batchmanager.py.
References reco::parser::MethodInvoker.args_, reco::parser::ExpressionQuaterOperator< Op >.args_, LazyConstructed< WrappedClass, Args >.args_, LazyResult< Func, Args >.args_, ExternalLHEProducer.args_, cmdline::CmdLine.args_, Json::Path.args_, TritonClient.options_, main.parse_args(), batchmanager.BatchManager.parser_, MonitorElementsDb.parser_, l1t::XmlConfigParser.parser_, DCCTBBlockPrototype.parser_, DCCTBDataMapper.parser_, and MonitorXMLParser.parser_.
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 157 of file batchmanager.py.
References mps_setup.append, join(), batchmanager.BatchManager.listOfJobs_, TFileDirectory.mkdir(), TFileService.mkdir(), batchHippy.MyBatchManager.mkdir(), batchmanager.BatchManager.mkdir(), dqmoffline::l1t::L1TDiffHarvesting::L1TDiffPlotHandler.outputDir_, MillePedeFileExtractor.outputDir_, L1GtVhdlWriter.outputDir_, dqmoffline::l1t::L1TEfficiencyPlotHandler.outputDir_, batchmanager.BatchManager.outputDir_, L1GtVhdlWriterCore.outputDir_, LaserSorter.outputDir_, cmsBatch.MyBatchManager.PrepareJobUser(), batchmanager.BatchManager.PrepareJobUser(), and print().
def batchmanager.BatchManager.PrepareJobs | ( | self, | |
listOfValues, | |||
listOfDirNames = None |
|||
) |
def batchmanager.BatchManager.PrepareJobUser | ( | self, | |
value | |||
) |
Hook allowing user to define how one of his jobs should be prepared.
Definition at line 172 of file batchmanager.py.
References print().
Referenced by batchmanager.BatchManager.PrepareJob().
def batchmanager.BatchManager.RunningMode | ( | self, | |
batch | |||
) |
Return "LXPUS", "PSI", "NAF", "LOCAL", or None, "LXPLUS" : batch command is bsub, and logged on lxplus "PSI" : batch command is qsub, and logged to t3uiXX "NAF" : batch command is qsub, and logged on naf "IC" : batch command is qsub, and logged on hep.ph.ic.ac.uk "LOCAL" : batch command is nohup. In all other cases, a CmsBatchException is raised
Definition at line 245 of file batchmanager.py.
References print().
Referenced by cmsBatch.MyBatchManager.PrepareJobUser(), and heppy_batch.MyBatchManager.PrepareJobUser().
def batchmanager.BatchManager.SubmitJob | ( | self, | |
jobDir | |||
) |
Hook for job submission.
Definition at line 196 of file batchmanager.py.
References TritonClient.options_, and print().
Referenced by batchmanager.BatchManager.SubmitJobs().
def batchmanager.BatchManager.SubmitJobArray | ( | self, | |
numbOfJobs = 1 |
|||
) |
def batchmanager.BatchManager.SubmitJobs | ( | self, | |
waitingTimeInSec = 0 |
|||
) |
Submit all jobs. Possibly wait between each job
Definition at line 177 of file batchmanager.py.
References if(), batchmanager.BatchManager.listOfJobs_, TritonClient.options_, print(), and batchmanager.BatchManager.SubmitJob().
batchmanager.BatchManager.listOfJobs_ |
Definition at line 114 of file batchmanager.py.
Referenced by batchmanager.BatchManager.PrepareJob(), and batchmanager.BatchManager.SubmitJobs().
batchmanager.BatchManager.outputDir_ |
Definition at line 142 of file batchmanager.py.
Referenced by batchmanager.BatchManager.PrepareJob(), and valtools.webpage.readCaptions().
batchmanager.BatchManager.parser_ |
Definition at line 33 of file batchmanager.py.
Referenced by valtools.webpage.parseArgs(), and batchmanager.BatchManager.ParseOptions().
batchmanager.BatchManager.remoteOutputDir_ |
Definition at line 60 of file batchmanager.py.
Referenced by cmsBatch.MyBatchManager.PrepareJobUser(), and heppy_batch.MyBatchManager.PrepareJobUser().
batchmanager.BatchManager.remoteOutputFile_ |
Definition at line 107 of file batchmanager.py.