Class for a single CrabRequest e This class represents one crab3 task/request. More...
Public Member Functions | |
def | __init__ (self, taskname="", crab_config="", crabController=None, initUpdate=True, debuglevel="ERROR", datasetpath="", localDir="", outlfn="") |
The object constructor. More... | |
def | crab_folder (self) |
def | crabConfig (self) |
Function to access crab config object or read it if unititalized. More... | |
def | crabFolder (self) |
def | datasetpath (self) |
def | handleNoState (self) |
Function to handle Task which received NOSTATE status. More... | |
def | isData (self) |
Property function to find out if task runs on data. More... | |
def | readLogArch (self, logArchName) |
Function to read log info from log.tar.gz. More... | |
def | resubmit_failed (self) |
Function to resubmit failed jobs in tasks. More... | |
def | test_print (self) |
def | update (self) |
Function to update Task in associated Jobs. More... | |
def | updateJobStats (self, dCacheFileList=None) |
Function to update JobStatistics. More... | |
Private Attributes | |
_crabConfig | |
_crabFolder | |
_datasetpath_default | |
_isData | |
Class for a single CrabRequest e This class represents one crab3 task/request.
Definition at line 371 of file crabFunctions.py.
def crabFunctions.CrabTask.__init__ | ( | self, | |
taskname = "" , |
|||
crab_config = "" , |
|||
crabController = None , |
|||
initUpdate = True , |
|||
debuglevel = "ERROR" , |
|||
datasetpath = "" , |
|||
localDir = "" , |
|||
outlfn = "" |
|||
) |
The object constructor.
self | The object pointer. |
taskname | The object pointer. |
initUpdate | Flag if crab status should be called when an instance is created |
Definition at line 386 of file crabFunctions.py.
def crabFunctions.CrabTask.crab_folder | ( | self | ) |
def crabFunctions.CrabTask.crabConfig | ( | self | ) |
Function to access crab config object or read it if unititalized.
self | CrabTask The object pointer. |
Definition at line 464 of file crabFunctions.py.
References crabFunctions.CrabTask._crabConfig, AlignableObjectId::entry.name, preexistingValidation.PreexistingValidation.name, alignment.Alignment.name, validateAlignments.ParallelMergeJob.name, XMLProcessor::_loaderBaseConfig.name, genericValidation.GenericValidation.name, h4DSegm.name, TrackerSectorStruct.name, classes.MonitorData.name, MuonGeometrySanityCheckPoint.name, classes.OutputData.name, h2DSegm.name, geometry.Structure.name, plotscripts.SawTeethFunction.name, crabFunctions.CrabTask.name, and hTMaxCell.name.
def crabFunctions.CrabTask.crabFolder | ( | self | ) |
Definition at line 479 of file crabFunctions.py.
References crabFunctions.CrabTask._crabFolder, AlignableObjectId::entry.name, preexistingValidation.PreexistingValidation.name, alignment.Alignment.name, validateAlignments.ParallelMergeJob.name, XMLProcessor::_loaderBaseConfig.name, genericValidation.GenericValidation.name, h4DSegm.name, TrackerSectorStruct.name, classes.MonitorData.name, MuonGeometrySanityCheckPoint.name, classes.OutputData.name, h2DSegm.name, geometry.Structure.name, plotscripts.SawTeethFunction.name, crabFunctions.CrabTask.name, and hTMaxCell.name.
def crabFunctions.CrabTask.datasetpath | ( | self | ) |
Definition at line 471 of file crabFunctions.py.
References crabFunctions.CrabTask._datasetpath_default.
def crabFunctions.CrabTask.handleNoState | ( | self | ) |
Function to handle Task which received NOSTATE status.
self | CrabTask The object pointer. |
Definition at line 541 of file crabFunctions.py.
References AlignableObjectId::entry.name, preexistingValidation.PreexistingValidation.name, alignment.Alignment.name, validateAlignments.ParallelMergeJob.name, XMLProcessor::_loaderBaseConfig.name, genericValidation.GenericValidation.name, h4DSegm.name, TrackerSectorStruct.name, classes.MonitorData.name, MuonGeometrySanityCheckPoint.name, classes.OutputData.name, h2DSegm.name, geometry.Structure.name, plotscripts.SawTeethFunction.name, crabFunctions.CrabTask.name, hTMaxCell.name, crabFunctions.CrabTask.resubmitCount, CastorLedAnalysis.state, HcalLedAnalysis.state, CastorPedestalAnalysis.state, HcalPedestalAnalysis.state, and crabFunctions.CrabTask.state.
def crabFunctions.CrabTask.isData | ( | self | ) |
Property function to find out if task runs on data.
self | CrabTask The object pointer. |
Definition at line 447 of file crabFunctions.py.
References crabFunctions.CrabTask._isData.
def crabFunctions.CrabTask.readLogArch | ( | self, | |
logArchName | |||
) |
Function to read log info from log.tar.gz.
self | The object pointer. |
logArchName | path to the compressed log file |
Definition at line 598 of file crabFunctions.py.
References createfilelist.int, and split.
def crabFunctions.CrabTask.resubmit_failed | ( | self | ) |
Function to resubmit failed jobs in tasks.
self | CrabTask The object pointer. |
Definition at line 495 of file crabFunctions.py.
References crabFunctions.CrabTask.jobs, crabFunctions.CrabTask.lastUpdate, AlignableObjectId::entry.name, preexistingValidation.PreexistingValidation.name, alignment.Alignment.name, validateAlignments.ParallelMergeJob.name, XMLProcessor::_loaderBaseConfig.name, genericValidation.GenericValidation.name, h4DSegm.name, TrackerSectorStruct.name, classes.MonitorData.name, MuonGeometrySanityCheckPoint.name, classes.OutputData.name, h2DSegm.name, geometry.Structure.name, plotscripts.SawTeethFunction.name, crabFunctions.CrabTask.name, and hTMaxCell.name.
def crabFunctions.CrabTask.test_print | ( | self | ) |
def crabFunctions.CrabTask.update | ( | self | ) |
Function to update Task in associated Jobs.
self | CrabTask The object pointer. |
Definition at line 512 of file crabFunctions.py.
References crabFunctions.CrabTask.crab_folder(), crabFunctions.CrabTask.failureReason, crabFunctions.CrabTask.isUpdating, crabFunctions.CrabTask.jobs, crabFunctions.CrabTask.lastUpdate, AlignableObjectId::entry.name, preexistingValidation.PreexistingValidation.name, alignment.Alignment.name, validateAlignments.ParallelMergeJob.name, XMLProcessor::_loaderBaseConfig.name, genericValidation.GenericValidation.name, h4DSegm.name, TrackerSectorStruct.name, classes.MonitorData.name, MuonGeometrySanityCheckPoint.name, classes.OutputData.name, h2DSegm.name, geometry.Structure.name, plotscripts.SawTeethFunction.name, crabFunctions.CrabTask.name, hTMaxCell.name, Mpslibclass.jobdatabase.nJobs, crabFunctions.CrabTask.nJobs, crabFunctions.CrabTask.resubmitCount, CastorLedAnalysis.state, HcalLedAnalysis.state, CastorPedestalAnalysis.state, HcalPedestalAnalysis.state, crabFunctions.CrabTask.state, and crabFunctions.CrabTask.updateJobStats().
Referenced by progressbar.ProgressBar.__next__(), MatrixUtil.Matrix.__setitem__(), MatrixUtil.Steps.__setitem__(), Vispa.Gui.VispaWidget.VispaWidget.autosize(), Vispa.Views.LineDecayView.LineDecayContainer.createObject(), Vispa.Views.LineDecayView.LineDecayContainer.deselectAllObjects(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner.deselectAllWidgets(), Vispa.Gui.VispaWidget.VispaWidget.enableAutosizing(), dqm-mbProfile.Profile.finish(), progressbar.ProgressBar.finish(), Vispa.Gui.MenuWidget.MenuWidget.leaveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner.mouseMoveEvent(), Vispa.Gui.MenuWidget.MenuWidget.mouseMoveEvent(), Vispa.Views.LineDecayView.LineDecayContainer.mouseMoveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner.mouseReleaseEvent(), Vispa.Views.LineDecayView.LineDecayContainer.objectMoved(), MatrixUtil.Steps.overwrite(), Vispa.Views.LineDecayView.LineDecayContainer.removeObject(), Vispa.Gui.ConnectableWidget.ConnectableWidget.removePorts(), Vispa.Gui.FindDialog.FindDialog.reset(), Vispa.Gui.PortConnection.PointToPointConnection.select(), Vispa.Gui.VispaWidget.VispaWidget.select(), Vispa.Views.LineDecayView.LineDecayContainer.select(), Vispa.Gui.VispaWidget.VispaWidget.setText(), Vispa.Gui.VispaWidget.VispaWidget.setTitle(), Vispa.Gui.ZoomableWidget.ZoomableWidget.setZoom(), Vispa.Views.LineDecayView.LineDecayContainer.setZoom(), and Vispa.Gui.PortConnection.PointToPointConnection.updateConnection().
Function to update JobStatistics.
self | The object pointer. |
dCacheFilelist | A list of files on the dCache |
Definition at line 563 of file crabFunctions.py.
References any(), createfilelist.int, crabFunctions.CrabTask.jobs, AlignableObjectId::entry.name, preexistingValidation.PreexistingValidation.name, alignment.Alignment.name, validateAlignments.ParallelMergeJob.name, XMLProcessor::_loaderBaseConfig.name, genericValidation.GenericValidation.name, h4DSegm.name, TrackerSectorStruct.name, classes.MonitorData.name, MuonGeometrySanityCheckPoint.name, classes.OutputData.name, h2DSegm.name, geometry.Structure.name, plotscripts.SawTeethFunction.name, crabFunctions.CrabTask.name, hTMaxCell.name, and crabFunctions.CrabTask.nComplete.
Referenced by crabFunctions.CrabTask.update().
|
private |
Definition at line 389 of file crabFunctions.py.
Referenced by crabFunctions.CrabTask.crabConfig().
|
private |
Definition at line 391 of file crabFunctions.py.
Referenced by crabFunctions.CrabTask.crabFolder().
|
private |
Definition at line 436 of file crabFunctions.py.
Referenced by crabFunctions.CrabTask.datasetpath().
|
private |
Definition at line 427 of file crabFunctions.py.
Referenced by crabFunctions.CrabTask.isData().
crabFunctions.CrabTask.debug |
Definition at line 430 of file crabFunctions.py.
Referenced by util.rrapi.RRApi.dprint(), rrapi.RRApi.dprint(), pkg.AbstractPkg.generate(), util.rrapi.RRApi.get(), rrapi.RRApi.get(), pkg.AbstractPkg.get_kwds(), and pkg.AbstractPkg.write().
crabFunctions.CrabTask.failureReason |
Definition at line 424 of file crabFunctions.py.
Referenced by crabFunctions.CrabTask.update().
crabFunctions.CrabTask.finalFiles |
Definition at line 432 of file crabFunctions.py.
crabFunctions.CrabTask.isUpdating |
Definition at line 410 of file crabFunctions.py.
Referenced by crabFunctions.CrabTask.update().
crabFunctions.CrabTask.jobs |
Definition at line 407 of file crabFunctions.py.
Referenced by crabFunctions.CrabTask.resubmit_failed(), crabFunctions.CrabTask.update(), and crabFunctions.CrabTask.updateJobStats().
crabFunctions.CrabTask.lastUpdate |
Definition at line 425 of file crabFunctions.py.
Referenced by crabFunctions.CrabTask.resubmit_failed(), and crabFunctions.CrabTask.update().
crabFunctions.CrabTask.localDir |
Definition at line 408 of file crabFunctions.py.
crabFunctions.CrabTask.log |
Definition at line 405 of file crabFunctions.py.
Referenced by conddbCopyTest.CopyTest.execute(), and conditionUploadTest.UploadTest.upload().
crabFunctions.CrabTask.maxjobnumber |
Definition at line 415 of file crabFunctions.py.
crabFunctions.CrabTask.name |
Definition at line 394 of file crabFunctions.py.
Referenced by ElectronMVAID.ElectronMVAID.__call__(), dirstructure.Directory.__create_pie_image(), DisplayManager.DisplayManager.__del__(), dqm_interfaces.DirID.__eq__(), BeautifulSoup.Tag.__eq__(), dirstructure.Directory.__get_full_path(), dirstructure.Comparison.__get_img_name(), dataset.Dataset.__getDataType(), dataset.Dataset.__getFileInfoList(), dirstructure.Comparison.__make_image(), core.autovars.NTupleVariable.__repr__(), core.autovars.NTupleObjectType.__repr__(), core.autovars.NTupleObject.__repr__(), core.autovars.NTupleCollection.__repr__(), dirstructure.Directory.__repr__(), dqm_interfaces.DirID.__repr__(), dirstructure.Comparison.__repr__(), config.Service.__setattr__(), config.CFG.__str__(), counter.Counter.__str__(), average.Average.__str__(), BeautifulSoup.Tag.__str__(), BeautifulSoup.SoupStrainer.__str__(), core.autovars.NTupleObjectType.addSubObjects(), core.autovars.NTupleObjectType.addVariables(), core.autovars.NTupleObjectType.allVars(), dirstructure.Directory.calcStats(), crabFunctions.CrabTask.crabConfig(), crabFunctions.CrabTask.crabFolder(), validation.Sample.digest(), python.rootplot.utilities.Hist.divide(), python.rootplot.utilities.Hist.divide_wilson(), DisplayManager.DisplayManager.Draw(), TreeCrawler.Package.dump(), core.autovars.NTupleVariable.fillBranch(), core.autovars.NTupleObject.fillBranches(), core.autovars.NTupleCollection.fillBranchesScalar(), core.autovars.NTupleCollection.fillBranchesVector(), core.autovars.NTupleCollection.get_cpp_declaration(), core.autovars.NTupleCollection.get_cpp_wrapper_class(), core.autovars.NTupleCollection.get_py_wrapper_class(), utils.StatisticalTest.get_status(), production_tasks.Task.getname(), dataset.CMSDataset.getPrimaryDatasetEntries(), dataset.PrivateDataset.getPrimaryDatasetEntries(), crabFunctions.CrabTask.handleNoState(), VIDSelectorBase.VIDSelectorBase.initialize(), personalPlayback.Applet.log(), core.autovars.NTupleVariable.makeBranch(), core.autovars.NTupleObject.makeBranches(), core.autovars.NTupleCollection.makeBranchesScalar(), core.autovars.NTupleCollection.makeBranchesVector(), dirstructure.Directory.print_report(), dataset.BaseDataset.printInfo(), dataset.Dataset.printInfo(), crabFunctions.CrabTask.resubmit_failed(), production_tasks.MonitorJobs.run(), BeautifulSoup.SoupStrainer.searchTag(), python.rootplot.utilities.Hist.TGraph(), python.rootplot.utilities.Hist.TH1F(), crabFunctions.CrabTask.update(), crabFunctions.CrabTask.updateJobStats(), Vispa.Views.PropertyView.Property.valueChanged(), counter.Counter.write(), and average.Average.write().
crabFunctions.CrabTask.nComplete |
Definition at line 423 of file crabFunctions.py.
Referenced by crabFunctions.CrabTask.updateJobStats().
crabFunctions.CrabTask.nCooloff |
Definition at line 420 of file crabFunctions.py.
crabFunctions.CrabTask.nFailed |
Definition at line 421 of file crabFunctions.py.
crabFunctions.CrabTask.nFinished |
Definition at line 422 of file crabFunctions.py.
crabFunctions.CrabTask.nIdle |
Definition at line 417 of file crabFunctions.py.
crabFunctions.CrabTask.nJobs |
Definition at line 413 of file crabFunctions.py.
Referenced by crabFunctions.CrabTask.update().
crabFunctions.CrabTask.nRunning |
Definition at line 418 of file crabFunctions.py.
crabFunctions.CrabTask.nTransferring |
Definition at line 419 of file crabFunctions.py.
crabFunctions.CrabTask.nUnsubmitted |
Definition at line 416 of file crabFunctions.py.
crabFunctions.CrabTask.outlfn |
Definition at line 409 of file crabFunctions.py.
crabFunctions.CrabTask.resubmitCount |
Definition at line 428 of file crabFunctions.py.
Referenced by crabFunctions.CrabTask.handleNoState(), and crabFunctions.CrabTask.update().
crabFunctions.CrabTask.state |
Definition at line 414 of file crabFunctions.py.
Referenced by crabFunctions.CrabTask.handleNoState(), and crabFunctions.CrabTask.update().
crabFunctions.CrabTask.taskId |
Definition at line 411 of file crabFunctions.py.
crabFunctions.CrabTask.totalEvents |
Definition at line 433 of file crabFunctions.py.
crabFunctions.CrabTask.uuid |
Definition at line 402 of file crabFunctions.py.
Referenced by crabFunctions.CrabTask.test_print().