Functions | |
def | fill_time_info (mps_index, status, cpu_time) |
Variables | |
condor_h | |
condor_q | |
cpu_time | |
string | disabled = "DISABLED" if "DISABLED" in lib.JOBSTATUS[mps_index] else "" |
loop over remaining jobs to see whether they are done More... | |
end | |
check for orphaned jobs More... | |
dictionary | htcondor_jobstatus |
mapping of HTCondor status codes to MPS status More... | |
job_id | |
dictionary | job_status = {} |
deal with submitted jobs by looking into output of shell (condor_q) More... | |
lib = mpslib.jobdatabase() | |
collect submitted jobs (use 'in' to handle composites, e.g. More... | |
dictionary | mps_index = submitted_jobs.get(job_id, -1) |
status = htcondor_jobstatus[status] | |
bool | submitted = True |
dictionary | submitted_jobs = {} |
userlog = os.path.join("jobData", lib.JOBDIR[mps_index], "HTCJOB") | |
def mps_update.fill_time_info | ( | mps_index, | |
status, | |||
cpu_time | |||
) |
Fill timing info in the database for `mps_index`. Arguments: - `mps_index`: index in the MPS database - `status`: job status - `cpu_time`: extracted CPU timing information
Definition at line 11 of file mps_update.py.
References createfilelist.int, and str.
mps_update.condor_h |
Definition at line 101 of file mps_update.py.
mps_update.condor_q |
Definition at line 65 of file mps_update.py.
mps_update.cpu_time |
Definition at line 69 of file mps_update.py.
string mps_update.disabled = "DISABLED" if "DISABLED" in lib.JOBSTATUS[mps_index] else "" |
loop over remaining jobs to see whether they are done
Definition at line 76 of file mps_update.py.
mps_update.end |
check for orphaned jobs
Definition at line 80 of file mps_update.py.
dictionary mps_update.htcondor_jobstatus |
mapping of HTCondor status codes to MPS status
Definition at line 35 of file mps_update.py.
mps_update.job_id |
Definition at line 69 of file mps_update.py.
dictionary mps_update.job_status = {} |
deal with submitted jobs by looking into output of shell (condor_q)
Definition at line 64 of file mps_update.py.
mps_update.lib = mpslib.jobdatabase() |
collect submitted jobs (use 'in' to handle composites, e.g.
DISABLEDFETCH)
Definition at line 46 of file mps_update.py.
mps_update.mps_index = submitted_jobs.get(job_id, -1) |
Definition at line 74 of file mps_update.py.
dictionary mps_update.status = htcondor_jobstatus[status] |
Definition at line 69 of file mps_update.py.
Referenced by XMLProcessor._toXMLCh(), addFilesWithFork(), cms::cuda::HostAllocator< T, FLAGS >.allocate(), ESTimingTask.analyze(), TKStatus.analyze(), CSCTFAnalyzer.analyze(), BeamSpotProblemMonitor.analyze(), DTNoiseCalibration.analyze(), BasicHepMCValidation.analyze(), WriteL1TriggerObjectsTxt.analyze(), TotemRPDQMSource.analyze(), MCEfficiencyAnalyzer.analyze(), L1TCSCTF.analyze(), L1Validator.analyze(), CTPPSDiamondDQMSource.analyze(), HLTriggerJSONMonitoring.analyze(), FWCaloDataHistProxyBuilder.assertCaloDataSlice(), gen::PhotosInterface.attachParticles(), edm::EventProcessor.beginLumiAsync(), EcalBoundaryInfoCalculator< EBDetId >.boundaryRecHits(), gen::AMPTHadronizer.build_ampt(), TtFullHadHypKinFit.buildHypo(), TtSemiLepHypHitFit.buildHypo(), TtSemiLepHypKinFit.buildHypo(), CaloGeometryHelper.buildNeighbourArray(), PFMETBenchmark.calculateQuantities(), CastorChannelStatus.CastorChannelStatus(), EcalRecHitWorkerRecover.checkChannelStatus(), pat::UserData.checkDictionaries(), dqm::DQMFileSaverOnline.checkError(), lhef::LHEEvent.checkHepMCTree(), HFTimingTrust.checkHFTimErr(), SiPixelFedCablingTree.checkNumbering(), EcalBoundaryInfoCalculator< EBDetId >.checkRecHitHasDeadNeighbour(), EgammaHLTNxNClusterProducer.checkStatusOfEcalRecHit(), HLTEcalResonanceFilter.checkStatusOfEcalRecHit(), HLTRegionalEcalResonanceFilter.checkStatusOfEcalRecHit(), tensorflow.closeSession(), edm::service.cmssw_stacktrace_fork(), compare_l1candidate(), dtCalibration::DTVDriftSegment.compute(), HFShower.compute(), HDShower.compute(), EMShower.compute(), SiPixelUtility.computeErrorCode(), EcalHitMaker.configureGeometry(), edm::EventProcessor.continueLumiAsync(), ErrorChecker.conversionError(), ErrorCheckerPhase0.conversionError(), dtCalibration::DTTTrigMatchRPhi.correction(), dtCalibration::DTTTrigFillWithAverage.correction(), dtCalibration::DTT0FillDefaultFromDB.correction(), dtCalibration::DTT0FillChamberFromDB.correction(), dtCalibration::DTTTrigConstantShift.correction(), dtCalibration::DTT0AbsoluteReferenceCorrection.correction(), dtCalibration::DTT0ChamberReferenceCorrection.correction(), dtCalibration::DTT0FEBPathCorrection.correction(), dtCalibration::DTTTrigT0SegCorrection.correction(), dtCalibration::DTT0WireInChamberReferenceCorrection.correction(), dtCalibration::DTTTrigResidualCorrection.correction(), TMatacq.countBadPulses(), tensorflow.createSession(), CUDAService.CUDAService(), DDIsValid(), cms::cuda::HostAllocator< T, FLAGS >.deallocate(), gen::TauolappInterface.decay(), LzmaFile.DecodeAll(), LzmaFile.DecodeBuffer(), dtCalibration::DTT0AbsoluteReferenceCorrection.defaultT0(), dtCalibration::DTT0ChamberReferenceCorrection.defaultT0(), dtCalibration::DTT0WireInChamberReferenceCorrection.defaultT0(), dtCalibration::DTT0FEBPathCorrection.defaultT0(), Demangle.Demangle(), EcalHitMaker.diagonalEdge(), doBZ2Compression(), edm::EDLooperBase.doDuringLoop(), PulseChiSqSNNLS.DoFit(), SiPixelGainCalibrationAnalysis.doFits(), EmissionVetoHook1.doVetoFSREmission(), EmissionVetoHook1.doVetoISREmission(), doZlibCompression(), TKStatus.dumpTkDcsStatus(), PFECALHashNavigator.ecalNeighbArray(), DTVDriftWriter.endJob(), DTT0Correction.endJob(), DTTTrigCorrection.endJob(), edm::EventProcessor.endOfLoop(), TMatacq.enterdata(), ErrorChecker.errorDetId(), ErrorCheckerPhase0.errorDetId(), ESRecHitAnalyticAlgo.EvalAmplitude(), ESRecHitFitAlgo.EvalAmplitude(), ESRecHitSimAlgo.evalAmplitude(), PhysicsTools::MVAComputer.evalInternal(), TritonClient.evaluate(), ExternalLHEProducer.executeScript(), EcalHitMaker.fastInsideCell(), MuScleFitPlotter.fillGen(), Py8toJetInput.fillJetAlgoInput(), LHETablesProducer.fillLHEObjectTable(), PFElectronTranslator.fillMVAValueMap(), TrackingQualityChecker.fillTrackingStatus(), TrackingQualityChecker.fillTrackingStatusAtLumi(), PythiaFilterTTBar.filter(), PythiaFilterIsolatedTrack.filter(), EcalDeadCellBoundaryEnergyFilter.filter(), Phase2Tracker::Phase2TrackerFEDBuffer.findChannels(), GenParticlesHelper.findDescendents(), HepMCValidationHelper.findFSRPhotons(), GenHFHadronMatcher.findInMothers(), L1GtVhdlWriterCore.findObjectType(), GenParticlesHelper.findParticles(), edm::Path.finished(), UnbinnedLikelihoodFit.fit(), TtFullHadKinFitter::KinFit.fit(), BSFitter.Fit_d0phi(), Phase2Tracker::Phase2TrackerFEDHeader.frontendStatus(), EcalBoundaryInfoCalculator< EBDetId >.gapRecHits(), GaussNoiseProducerFP420.generate(), GaussianTailNoiseGenerator.generate(), gen::BaseHadronizer.generateLHE(), pat::PATObject< reco::Muon >.genParticleById(), DTTtrig.get(), DTMtime.get(), Py8toJetInput.getAncestor(), dtCalibration::DTTTrigFillWithAverage.getAverage(), ESTrivialConditionRetriever.getChannelStatusFromConfiguration(), EcalTrivialConditionRetriever.getChannelStatusFromConfiguration(), EcalDeadCellTriggerPrimitiveFilter.getChannelStatusMaps(), EcalDeadCellDeltaRFilter.getChannelStatusMaps(), pat::EventHypothesis.getDemangledSymbol(), SiStripUtility.getDetectorStatusColor(), cscdqm::Summary.GetEfficiencyHW(), PixelSLinkDataInputSource.getEventNumberFromFillWords(), HLTTauMCProducer.getGenDecayProducts(), CrossingPtBasedLinearizationPointFinder.getLinearizationPoint(), TrackingUtility.getMEStatus(), SiStripUtility.getMEStatus(), TrackingUtility.getMEStatusColor(), SiStripUtility.getMEStatusColor(), DTDeadFlagHandler.getNewObjects(), DTPerformanceHandler.getNewObjects(), DTReadOutMappingHandler.getNewObjects(), DTStatusFlagHandler.getNewObjects(), DTT0Handler.getNewObjects(), DTTPGParametersHandler.getNewObjects(), DTRangeT0Handler.getNewObjects(), FedRawDataInputSource.getNextEvent(), cscdqm::Summary.GetReportingArea(), TritonClient.getResults(), HepMCFileReader.getStatsFromTuple(), SiPixelUtility.getStatus(), SiPixelUtility.getStatusColor(), EcalTrivialConditionRetriever.getTrgChannelStatusFromConfiguration(), edm::EventProcessor.globalEndLumiAsync(), lhef::H5Handler.H5Handler(), XrdAdaptor::Source.handle(), edm::EventProcessor.handleNextEventForStreamAsync(), XrdAdaptor::RequestManager.handleOpen(), MakerResponseHandler.HandleResponse(), XrdAdaptor::ClientRequest.HandleResponse(), SendMonitoringInfoHandler.HandleResponse(), QueryAttrHandler.HandleResponse(), DelayedClose.HandleResponseWithHosts(), XrdAdaptor::RequestManager::OpenHandler.HandleResponseWithHosts(), egamma.hasActiveHcal(), GenParticlesHelper.hasAncestor(), CalorimetryManager.HDShowerSimulation(), Generator.HepMC2G4(), HcalHFStatusBitFromRecHits.hfSetFlagFromRecHits(), InduceChargeFP420.induce(), PFBadHcalPseudoClusterProducer.init(), fireworks::Context.initEveElements(), RBCBasicConfig.initialise(), TTUBasicConfig.initialise(), LogicTool< GenLogic >.initialise(), RBCEmulator.initialise(), RPCWheel.initialise(), TTUEmulator.initialise(), XrdAdaptor::RequestManager.initialize(), Pythia8Hadronizer.initializeForExternalPartons(), Pythia8Hadronizer.initializeForInternalPartons(), edm::ParameterDescriptionCases< T >.insert(), edm::ParameterSwitchBase.insertAndCheckLabels(), HcalObjRepresent.isBitSet(), MBUEandQCDValidation.isCharged(), HepMCValidationHelper.isChargedLepton(), EcalDeadCellDeltaRFilter.isCloseToBadEcalChannel(), AnomalousECALVariables.isDeadEcalCluster(), GenParticlesHelper.isDirect(), MBUEandQCDValidation.isNeutral(), HepMCValidationHelper.isNeutrino(), MBUEandQCDValidation.isNeutrino(), npstat.isNonDecreasing(), npstat.isNonIncreasing(), cscdqm::Summary.IsPhysicsReady(), npstat.isStrictlyDecreasing(), AbsHcalFunctor.isStrictlyDecreasing(), npstat.isStrictlyIncreasing(), AbsHcalFunctor.isStrictlyIncreasing(), FFTJetProducer.iterateJetReconstruction(), tensorflow.loadGraphDef(), tensorflow.loadMetaGraphDef(), LzmaDec_DecodeToBuf(), LzmaDec_DecodeToDic(), LzmaDecode(), main(), gen::TauolappInterface.make_simple_tau_event(), lhef::LHEEvent.makeHepMCParticle(), gen.GeneratorAnalyzer.GeneratorAnalyzer.makeMCInfo(), EcalUncalibRecHitMultiFitAlgo.makeRecHit(), reco::MCMatchSelector< T1, T2 >.MCMatchSelector(), MergeRootfile(), PulseChiSqSNNLS.Minimize(), CaloGeometryHelper.move(), FedRawDataInputSource.nextEvent(), ESRecHitSimAlgo.oldEvalAmplitude(), ESRecHitSimAlgo.oldreconstruct(), XrdFile.open(), XrdAdaptor::RequestManager::OpenHandler.open(), TEcnaRead.OpenRootFile(), TEcnaRun.OpenRootFile(), TSCBLBuilderNoMaterial.operator()(), GenJetParticleSelector.operator()(), FastTimerService::ResourcesPerPath.operator+=(), trigger::TriggerObject.particle(), FFTJetCorrectionProducer.performPileupSubtraction(), pos::PixelDetectorConfig.PixelDetectorConfig(), PixelTemplateSmearerBase.PixelTemplateSmearerBase(), SymmetryFit.pol2_from_pol2(), SymmetryFit.pol2_from_pol3(), FastTimerService.postPathEvent(), edm::OccurrenceTraits< EventPrincipal, BranchActionStreamBegin >.postPathSignal(), HepMCFileReader.printEvent(), TMatacq.printitermatacqData(), RBCChamberORLogic.process(), RPCWheel.process(), edm::EventProcessor.processEventWithLooper(), WeakEffectsWeightProducer.produce(), PseudoTopProducer.produce(), TtSemiLepKinFitProducer< LeptonCollection >.produce(), ISRGammaWeightProducer.produce(), ISRWeightProducer.produce(), PdfWeightProducer.produce(), PFElectronTranslator.produce(), RPCUnpackingModule.produce(), PFPhotonTranslator.produce(), CSCTFUnpacker.produce(), Onia2MuMuPAT.produce(), L1TkFastVertexProducer.produce(), FlavorHistoryProducer.produce(), l1t::GenToInputProducer.produce(), RPCTechnicalTrigger.produce(), FFTJetProducer.produce(), HcalHardcodeCalibrations.produceChannelQuality(), EcalTrivialConditionRetriever.produceEcalDAQTowerStatus(), EcalTrivialConditionRetriever.produceEcalDCSTowerStatus(), ecaldqm::CalibrationSummaryClient.producePlots(), ecaldqm::SummaryClient.producePlots(), Herwig6Hadronizer.pythiaStatusCode(), StoreEcalCondition.readEcalChannelStatusFromFile(), StoreESCondition.readESChannelStatusFromFile(), DTReadOutMapping.readOutToGeometry(), FedRawDataInputSource.readSupervisor(), IOInput.readv(), EcalDCSTowerStatusXMLTranslator.readXML(), EcalDAQTowerStatusXMLTranslator.readXML(), ESRecHitSimAlgo.reconstruct(), ESRecHitAnalyticAlgo.reconstruct(), ESRecHitFitAlgo.reconstruct(), XrdAdaptor::RequestManager.requestFailure(), FastTimerService::ResourcesPerPath.reset(), gen::Cascade2Hadronizer.residualDecay(), gen::Pythia6Hadronizer.residualDecay(), TEcnaRootFile.ReStart(), L1GtVhdlWriterCore.returnConditionsOfOneClass(), dqmservices::TriggerSelector::TreeElement.returnStatus(), Pythia8PartonSelector.run(), RawToDigiConverter.run(), tensorflow.run(), run_script(), ecaldqm::RawDataTask.runOnRawData(), BaseHiGenEvtSelector.selectParticle(), HadronDecayGenEvtSelector.selectParticle(), PartonHadronDecayGenEvtSelector.selectParticle(), HcalSourcePositionData.set(), CSCDDUHeader.setBOEStatus(), DTStatusFlag.setCellDead(), DTDeadFlag.setCellDead_HV(), DTDeadFlag.setCellDead_RO(), DTDeadFlag.setCellDead_TP(), DTDeadFlag.setCellDiscCat(), DTStatusFlag.setCellFEMask(), DTStatusFlag.setCellNoHV(), DTStatusFlag.setCellNoise(), DTStatusFlag.setCellTDCMask(), DTStatusFlag.setCellTrigMask(), ESRecHitSimAlgo.setChannelStatus(), ESRecHitAnalyticAlgo.setChannelStatus(), ESRecHitFitAlgo.setChannelStatus(), sistrip::FEDFEHeader.setChannelStatus(), sistrip::FEDAPVErrorHeader.setChannelStatus(), sistrip::FEDFullDebugHeader.setChannelStatus(), FWLegoViewBase.setContext(), EcalDeadCellTriggerPrimitiveFilter.setEvtRecHitstatus(), EcalDeadCellTriggerPrimitiveFilter.setEvtTPstatus(), EcalRecHitWorkerSimple.setFlagBits(), ESDigitizer.setGain(), EcalTBHodoscopePlaneRawHits.setHit(), reco::CSCHaloData.SetHLTBit(), FFTJetProducer.setJetStatusBit(), CSCDDUHeader.setOutputPathStatus(), reco::SuperCluster.setPreshowerPlanesStatus(), L1Analysis::L1AnalysisCSCTF.SetStatus(), reco::PFCandidateElectronExtra.setStatus(), reco::PFCandidateEGammaExtra.setStatus(), MonDelaysTTDat.setTaskStatus(), MonPedestalsOnlineDat.setTaskStatus(), MonPedestalOffsetsDat.setTaskStatus(), MonLaserBlueDat.setTaskStatus(), MonLaserGreenDat.setTaskStatus(), MonLed2Dat.setTaskStatus(), MonLed1Dat.setTaskStatus(), MonLaserIRedDat.setTaskStatus(), MonPNPedDat.setTaskStatus(), MonLaserRedDat.setTaskStatus(), MonCrystalConsistencyDat.setTaskStatus(), MonMemChConsistencyDat.setTaskStatus(), MonPedestalsDat.setTaskStatus(), MonTTConsistencyDat.setTaskStatus(), MonMemTTConsistencyDat.setTaskStatus(), MonTestPulseDat.setTaskStatus(), MonPNBlueDat.setTaskStatus(), MonPNLed1Dat.setTaskStatus(), MonPNGreenDat.setTaskStatus(), MonPNMGPADat.setTaskStatus(), MonPNRedDat.setTaskStatus(), MonPNIRedDat.setTaskStatus(), MonPNLed2Dat.setTaskStatus(), ITimingDat.setTaskStatus(), HBHETimingShapedFlagSetter.SetTimingShapedFlags(), CSCDDUHeader.setTTSStatus(), XrdStorageMaker.stagein(), StatusSelector.StatusSelector(), edm::EventProcessor.streamEndLumiAsync(), SymmetryFit.symmetryChi2(), TEcnaRootFile.TEcnaRootFile(), cms::cudatest.testDevices(), CSCFitAFEBThr.ThresholdNoise(), HBHETimingShapedFlagSetter.timingStatus(), TMatacq.TMatacq(), sistrip.toString(), HLTPerformanceInfo.totalPathCPUTime(), HLTPerformanceInfo.totalPathTime(), toTString(), edm.typeDemangle(), pat::UserData.typeNameFor(), HcaluLUTTPGCoder.update(), edm::service::CondorStatusService.updateChirpImpl(), PulseChiSqSNNLS.updateCov(), FWGUIManager.updateStatus(), CmsShowMainFrame.updateStatusBar(), CrossingPtBasedLinearizationPointFinder.useAllTracks(), PixelDataFormatter.word2digi(), cscdqm::Summary.Write(), npstat::LinInterpolatedTableND< Numeric, Axis >.write(), EPOS::IO_EPOS.write_event(), gs.writeCompressedStringArchive(), and gs.writeStringArchive().
bool mps_update.submitted = True |
Definition at line 51 of file mps_update.py.
dictionary mps_update.submitted_jobs = {} |
Definition at line 49 of file mps_update.py.
mps_update.userlog = os.path.join("jobData", lib.JOBDIR[mps_index], "HTCJOB") |
Definition at line 100 of file mps_update.py.