reqmgr2 2.3.10__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- PSetTweaks/PSetTweak.py +449 -0
- PSetTweaks/WMTweak.py +621 -0
- PSetTweaks/__init__.py +3 -0
- Utils/CPMetrics.py +270 -0
- Utils/CertTools.py +62 -0
- Utils/EmailAlert.py +50 -0
- Utils/ExtendedUnitTestCase.py +62 -0
- Utils/FileTools.py +182 -0
- Utils/IteratorTools.py +80 -0
- Utils/MathUtils.py +31 -0
- Utils/MemoryCache.py +119 -0
- Utils/Patterns.py +24 -0
- Utils/Pipeline.py +137 -0
- Utils/PortForward.py +97 -0
- Utils/ProcessStats.py +103 -0
- Utils/PythonVersion.py +17 -0
- Utils/Signals.py +36 -0
- Utils/TemporaryEnvironment.py +27 -0
- Utils/Throttled.py +227 -0
- Utils/Timers.py +130 -0
- Utils/Timestamps.py +86 -0
- Utils/TokenManager.py +143 -0
- Utils/Tracing.py +60 -0
- Utils/TwPrint.py +98 -0
- Utils/Utilities.py +308 -0
- Utils/__init__.py +11 -0
- WMCore/ACDC/Collection.py +57 -0
- WMCore/ACDC/CollectionTypes.py +12 -0
- WMCore/ACDC/CouchCollection.py +67 -0
- WMCore/ACDC/CouchFileset.py +238 -0
- WMCore/ACDC/CouchService.py +73 -0
- WMCore/ACDC/DataCollectionService.py +485 -0
- WMCore/ACDC/Fileset.py +94 -0
- WMCore/ACDC/__init__.py +11 -0
- WMCore/Algorithms/Alarm.py +39 -0
- WMCore/Algorithms/MathAlgos.py +274 -0
- WMCore/Algorithms/MiscAlgos.py +67 -0
- WMCore/Algorithms/ParseXMLFile.py +115 -0
- WMCore/Algorithms/Permissions.py +27 -0
- WMCore/Algorithms/Singleton.py +58 -0
- WMCore/Algorithms/SubprocessAlgos.py +129 -0
- WMCore/Algorithms/__init__.py +7 -0
- WMCore/Cache/GenericDataCache.py +98 -0
- WMCore/Cache/WMConfigCache.py +572 -0
- WMCore/Cache/__init__.py +0 -0
- WMCore/Configuration.py +651 -0
- WMCore/DAOFactory.py +47 -0
- WMCore/DataStructs/File.py +177 -0
- WMCore/DataStructs/Fileset.py +140 -0
- WMCore/DataStructs/Job.py +182 -0
- WMCore/DataStructs/JobGroup.py +142 -0
- WMCore/DataStructs/JobPackage.py +49 -0
- WMCore/DataStructs/LumiList.py +734 -0
- WMCore/DataStructs/Mask.py +219 -0
- WMCore/DataStructs/MathStructs/ContinuousSummaryHistogram.py +197 -0
- WMCore/DataStructs/MathStructs/DiscreteSummaryHistogram.py +92 -0
- WMCore/DataStructs/MathStructs/SummaryHistogram.py +117 -0
- WMCore/DataStructs/MathStructs/__init__.py +0 -0
- WMCore/DataStructs/Pickleable.py +24 -0
- WMCore/DataStructs/Run.py +256 -0
- WMCore/DataStructs/Subscription.py +175 -0
- WMCore/DataStructs/WMObject.py +47 -0
- WMCore/DataStructs/WorkUnit.py +112 -0
- WMCore/DataStructs/Workflow.py +60 -0
- WMCore/DataStructs/__init__.py +8 -0
- WMCore/Database/CMSCouch.py +1349 -0
- WMCore/Database/ConfigDBMap.py +29 -0
- WMCore/Database/CouchUtils.py +118 -0
- WMCore/Database/DBCore.py +198 -0
- WMCore/Database/DBCreator.py +113 -0
- WMCore/Database/DBExceptionHandler.py +57 -0
- WMCore/Database/DBFactory.py +110 -0
- WMCore/Database/DBFormatter.py +177 -0
- WMCore/Database/Dialects.py +13 -0
- WMCore/Database/ExecuteDAO.py +327 -0
- WMCore/Database/MongoDB.py +241 -0
- WMCore/Database/MySQL/Destroy.py +42 -0
- WMCore/Database/MySQL/ListUserContent.py +20 -0
- WMCore/Database/MySQL/__init__.py +9 -0
- WMCore/Database/MySQLCore.py +132 -0
- WMCore/Database/Oracle/Destroy.py +56 -0
- WMCore/Database/Oracle/ListUserContent.py +19 -0
- WMCore/Database/Oracle/__init__.py +9 -0
- WMCore/Database/ResultSet.py +44 -0
- WMCore/Database/Transaction.py +91 -0
- WMCore/Database/__init__.py +9 -0
- WMCore/Database/ipy_profile_couch.py +438 -0
- WMCore/FwkJobReport/FileInfo.py +131 -0
- WMCore/FwkJobReport/Report.py +1646 -0
- WMCore/FwkJobReport/ReportEmu.py +122 -0
- WMCore/FwkJobReport/XMLParser.py +606 -0
- WMCore/FwkJobReport/__init__.py +15 -0
- WMCore/GroupUser/CouchObject.py +127 -0
- WMCore/GroupUser/Decorators.py +51 -0
- WMCore/GroupUser/Group.py +33 -0
- WMCore/GroupUser/Interface.py +73 -0
- WMCore/GroupUser/User.py +96 -0
- WMCore/GroupUser/__init__.py +11 -0
- WMCore/Lexicon.py +836 -0
- WMCore/REST/Auth.py +202 -0
- WMCore/REST/CherryPyPeriodicTask.py +166 -0
- WMCore/REST/Error.py +333 -0
- WMCore/REST/Format.py +642 -0
- WMCore/REST/HeartbeatMonitorBase.py +90 -0
- WMCore/REST/Main.py +623 -0
- WMCore/REST/Server.py +2435 -0
- WMCore/REST/Services.py +24 -0
- WMCore/REST/Test.py +120 -0
- WMCore/REST/Tools.py +38 -0
- WMCore/REST/Validation.py +250 -0
- WMCore/REST/__init__.py +1 -0
- WMCore/ReqMgr/CherryPyThreads/AuxCacheUpdateTasks.py +31 -0
- WMCore/ReqMgr/CherryPyThreads/BuildParentLock.py +116 -0
- WMCore/ReqMgr/CherryPyThreads/CouchDBCleanup.py +110 -0
- WMCore/ReqMgr/CherryPyThreads/HeartbeatMonitor.py +154 -0
- WMCore/ReqMgr/CherryPyThreads/StatusChangeTasks.py +131 -0
- WMCore/ReqMgr/CherryPyThreads/StepChainParentageFixTask.py +104 -0
- WMCore/ReqMgr/CherryPyThreads/__init__.py +0 -0
- WMCore/ReqMgr/DataStructs/AuthzByStatus.py +113 -0
- WMCore/ReqMgr/DataStructs/DefaultConfig/CAMPAIGN_CONFIG.py +116 -0
- WMCore/ReqMgr/DataStructs/DefaultConfig/DAS_RESULT_FILTER.py +3 -0
- WMCore/ReqMgr/DataStructs/DefaultConfig/EDITABLE_SPLITTING_PARAM_CONFIG.py +42 -0
- WMCore/ReqMgr/DataStructs/DefaultConfig/UNIFIED_CONFIG.py +240 -0
- WMCore/ReqMgr/DataStructs/DefaultConfig/__init__.py +0 -0
- WMCore/ReqMgr/DataStructs/ReqMgrConfigDataCache.py +65 -0
- WMCore/ReqMgr/DataStructs/Request.py +293 -0
- WMCore/ReqMgr/DataStructs/RequestError.py +21 -0
- WMCore/ReqMgr/DataStructs/RequestStatus.py +209 -0
- WMCore/ReqMgr/DataStructs/RequestType.py +13 -0
- WMCore/ReqMgr/DataStructs/__init__.py +0 -0
- WMCore/ReqMgr/ReqMgrCouch.py +74 -0
- WMCore/ReqMgr/Service/Auxiliary.py +319 -0
- WMCore/ReqMgr/Service/RegExp.py +16 -0
- WMCore/ReqMgr/Service/Request.py +681 -0
- WMCore/ReqMgr/Service/RequestAdditionalInfo.py +317 -0
- WMCore/ReqMgr/Service/RestApiHub.py +68 -0
- WMCore/ReqMgr/Service/WMStatsInfo.py +46 -0
- WMCore/ReqMgr/Service/__init__.py +0 -0
- WMCore/ReqMgr/Tools/__init__.py +0 -0
- WMCore/ReqMgr/Tools/cms.py +243 -0
- WMCore/ReqMgr/Utils/AuxValidation.py +53 -0
- WMCore/ReqMgr/Utils/Validation.py +341 -0
- WMCore/ReqMgr/Utils/__init__.py +0 -0
- WMCore/ReqMgr/Web/ReqMgrService.py +780 -0
- WMCore/ReqMgr/Web/__init__.py +0 -0
- WMCore/ReqMgr/Web/tools.py +211 -0
- WMCore/ReqMgr/Web/utils.py +291 -0
- WMCore/ReqMgr/WebGui/FrontPage.py +38 -0
- WMCore/ReqMgr/WebGui/__init__.py +0 -0
- WMCore/ReqMgr/__init__.py +1 -0
- WMCore/Services/AlertManager/AlertManagerAPI.py +111 -0
- WMCore/Services/AlertManager/__init__.py +0 -0
- WMCore/Services/CRIC/CRIC.py +238 -0
- WMCore/Services/CRIC/__init__.py +0 -0
- WMCore/Services/DBS/DBS3Reader.py +1044 -0
- WMCore/Services/DBS/DBSConcurrency.py +44 -0
- WMCore/Services/DBS/DBSErrors.py +113 -0
- WMCore/Services/DBS/DBSReader.py +23 -0
- WMCore/Services/DBS/DBSUtils.py +139 -0
- WMCore/Services/DBS/DBSWriterObjects.py +381 -0
- WMCore/Services/DBS/ProdException.py +133 -0
- WMCore/Services/DBS/__init__.py +8 -0
- WMCore/Services/FWJRDB/FWJRDBAPI.py +118 -0
- WMCore/Services/FWJRDB/__init__.py +0 -0
- WMCore/Services/HTTPS/HTTPSAuthHandler.py +66 -0
- WMCore/Services/HTTPS/__init__.py +0 -0
- WMCore/Services/LogDB/LogDB.py +201 -0
- WMCore/Services/LogDB/LogDBBackend.py +191 -0
- WMCore/Services/LogDB/LogDBExceptions.py +11 -0
- WMCore/Services/LogDB/LogDBReport.py +85 -0
- WMCore/Services/LogDB/__init__.py +0 -0
- WMCore/Services/MSPileup/__init__.py +0 -0
- WMCore/Services/MSUtils/MSUtils.py +54 -0
- WMCore/Services/MSUtils/__init__.py +0 -0
- WMCore/Services/McM/McM.py +173 -0
- WMCore/Services/McM/__init__.py +8 -0
- WMCore/Services/MonIT/Grafana.py +133 -0
- WMCore/Services/MonIT/__init__.py +0 -0
- WMCore/Services/PyCondor/PyCondorAPI.py +154 -0
- WMCore/Services/PyCondor/PyCondorUtils.py +105 -0
- WMCore/Services/PyCondor/__init__.py +0 -0
- WMCore/Services/ReqMgr/ReqMgr.py +261 -0
- WMCore/Services/ReqMgr/__init__.py +0 -0
- WMCore/Services/ReqMgrAux/ReqMgrAux.py +419 -0
- WMCore/Services/ReqMgrAux/__init__.py +0 -0
- WMCore/Services/RequestDB/RequestDBReader.py +267 -0
- WMCore/Services/RequestDB/RequestDBWriter.py +39 -0
- WMCore/Services/RequestDB/__init__.py +0 -0
- WMCore/Services/Requests.py +624 -0
- WMCore/Services/Rucio/Rucio.py +1287 -0
- WMCore/Services/Rucio/RucioUtils.py +74 -0
- WMCore/Services/Rucio/__init__.py +0 -0
- WMCore/Services/RucioConMon/RucioConMon.py +128 -0
- WMCore/Services/RucioConMon/__init__.py +0 -0
- WMCore/Services/Service.py +400 -0
- WMCore/Services/StompAMQ/__init__.py +0 -0
- WMCore/Services/TagCollector/TagCollector.py +155 -0
- WMCore/Services/TagCollector/XMLUtils.py +98 -0
- WMCore/Services/TagCollector/__init__.py +0 -0
- WMCore/Services/UUIDLib.py +13 -0
- WMCore/Services/UserFileCache/UserFileCache.py +160 -0
- WMCore/Services/UserFileCache/__init__.py +8 -0
- WMCore/Services/WMAgent/WMAgent.py +63 -0
- WMCore/Services/WMAgent/__init__.py +0 -0
- WMCore/Services/WMArchive/CMSSWMetrics.py +526 -0
- WMCore/Services/WMArchive/DataMap.py +463 -0
- WMCore/Services/WMArchive/WMArchive.py +33 -0
- WMCore/Services/WMArchive/__init__.py +0 -0
- WMCore/Services/WMBS/WMBS.py +97 -0
- WMCore/Services/WMBS/__init__.py +0 -0
- WMCore/Services/WMStats/DataStruct/RequestInfoCollection.py +300 -0
- WMCore/Services/WMStats/DataStruct/__init__.py +0 -0
- WMCore/Services/WMStats/WMStatsPycurl.py +145 -0
- WMCore/Services/WMStats/WMStatsReader.py +445 -0
- WMCore/Services/WMStats/WMStatsWriter.py +273 -0
- WMCore/Services/WMStats/__init__.py +0 -0
- WMCore/Services/WMStatsServer/WMStatsServer.py +134 -0
- WMCore/Services/WMStatsServer/__init__.py +0 -0
- WMCore/Services/WorkQueue/WorkQueue.py +492 -0
- WMCore/Services/WorkQueue/__init__.py +0 -0
- WMCore/Services/__init__.py +8 -0
- WMCore/Services/pycurl_manager.py +574 -0
- WMCore/Storage/Backends/AWSS3Impl.py +110 -0
- WMCore/Storage/Backends/CPImpl.py +125 -0
- WMCore/Storage/Backends/FNALImpl.py +229 -0
- WMCore/Storage/Backends/GFAL2Impl.py +260 -0
- WMCore/Storage/Backends/LCGImpl.py +236 -0
- WMCore/Storage/Backends/SRMV2Impl.py +248 -0
- WMCore/Storage/Backends/TestFallbackToOldBackend.py +130 -0
- WMCore/Storage/Backends/UnittestImpl.py +188 -0
- WMCore/Storage/Backends/VandyImpl.py +110 -0
- WMCore/Storage/Backends/XRDCPImpl.py +314 -0
- WMCore/Storage/Backends/__init__.py +29 -0
- WMCore/Storage/DeleteMgr.py +255 -0
- WMCore/Storage/Execute.py +82 -0
- WMCore/Storage/FileManager.py +448 -0
- WMCore/Storage/Plugins/CPImpl.py +45 -0
- WMCore/Storage/Plugins/Examples/SRMV2Impl.py +188 -0
- WMCore/Storage/Plugins/Examples/XRDCPImpl.py +64 -0
- WMCore/Storage/Plugins/Examples/__init__.py +1 -0
- WMCore/Storage/Plugins/FNALImpl.py +329 -0
- WMCore/Storage/Plugins/GFAL2Impl.py +84 -0
- WMCore/Storage/Plugins/LCGImpl.py +91 -0
- WMCore/Storage/Plugins/TestFailImpl.py +33 -0
- WMCore/Storage/Plugins/TestLocalCopyImpl.py +48 -0
- WMCore/Storage/Plugins/TestWinImpl.py +28 -0
- WMCore/Storage/Plugins/VandyImpl.py +109 -0
- WMCore/Storage/Plugins/__init__.py +17 -0
- WMCore/Storage/Registry.py +105 -0
- WMCore/Storage/RucioFileCatalog.py +247 -0
- WMCore/Storage/SiteLocalConfig.py +353 -0
- WMCore/Storage/StageInMgr.py +257 -0
- WMCore/Storage/StageOutError.py +69 -0
- WMCore/Storage/StageOutImpl.py +303 -0
- WMCore/Storage/StageOutImplV2.py +97 -0
- WMCore/Storage/StageOutMgr.py +390 -0
- WMCore/Storage/StoreFail.py +73 -0
- WMCore/Storage/TestImpl.py +71 -0
- WMCore/Storage/TrivialFileCatalog.py +383 -0
- WMCore/Storage/__init__.py +0 -0
- WMCore/WMBase.py +50 -0
- WMCore/WMConnectionBase.py +164 -0
- WMCore/WMException.py +183 -0
- WMCore/WMExceptions.py +269 -0
- WMCore/WMFactory.py +76 -0
- WMCore/WMInit.py +228 -0
- WMCore/WMLogging.py +108 -0
- WMCore/WMRuntime/Bootstrap.py +459 -0
- WMCore/WMRuntime/Monitors/PerformanceMonitor.py +308 -0
- WMCore/WMRuntime/Monitors/TestMonitor.py +197 -0
- WMCore/WMRuntime/Monitors/WMRuntimeMonitor.py +115 -0
- WMCore/WMRuntime/Monitors/__init__.py +8 -0
- WMCore/WMRuntime/ProcessMonitor.py +157 -0
- WMCore/WMRuntime/Sandbox.py +56 -0
- WMCore/WMRuntime/SandboxCreator.py +199 -0
- WMCore/WMRuntime/ScriptFactory.py +53 -0
- WMCore/WMRuntime/ScriptInterface.py +30 -0
- WMCore/WMRuntime/ScriptInvoke.py +120 -0
- WMCore/WMRuntime/Scripts/SetupCMSSWPset.py +826 -0
- WMCore/WMRuntime/Scripts/__init__.py +7 -0
- WMCore/WMRuntime/Startup.py +57 -0
- WMCore/WMRuntime/StepSpace.py +75 -0
- WMCore/WMRuntime/TaskSpace.py +144 -0
- WMCore/WMRuntime/Tools/Plugins/__init__.py +7 -0
- WMCore/WMRuntime/Tools/Scram.py +465 -0
- WMCore/WMRuntime/Tools/__init__.py +8 -0
- WMCore/WMRuntime/Unpacker.py +175 -0
- WMCore/WMRuntime/Watchdog.py +329 -0
- WMCore/WMRuntime/__init__.py +8 -0
- WMCore/WMSpec/ConfigSectionTree.py +442 -0
- WMCore/WMSpec/Makers/Handlers/MakeJob.py +46 -0
- WMCore/WMSpec/Makers/Handlers/MakeJobSlave.py +66 -0
- WMCore/WMSpec/Makers/Handlers/__init__.py +9 -0
- WMCore/WMSpec/Makers/Interface/CreateWorkArea.py +466 -0
- WMCore/WMSpec/Makers/Interface/__init__.py +9 -0
- WMCore/WMSpec/Makers/JobMaker.py +33 -0
- WMCore/WMSpec/Makers/TaskMaker.py +229 -0
- WMCore/WMSpec/Makers/__init__.py +9 -0
- WMCore/WMSpec/Persistency.py +135 -0
- WMCore/WMSpec/StdSpecs/DQMHarvest.py +156 -0
- WMCore/WMSpec/StdSpecs/DataProcessing.py +75 -0
- WMCore/WMSpec/StdSpecs/Express.py +506 -0
- WMCore/WMSpec/StdSpecs/PromptReco.py +220 -0
- WMCore/WMSpec/StdSpecs/ReReco.py +280 -0
- WMCore/WMSpec/StdSpecs/Repack.py +219 -0
- WMCore/WMSpec/StdSpecs/Resubmission.py +213 -0
- WMCore/WMSpec/StdSpecs/StdBase.py +1412 -0
- WMCore/WMSpec/StdSpecs/StepChain.py +672 -0
- WMCore/WMSpec/StdSpecs/StoreResults.py +124 -0
- WMCore/WMSpec/StdSpecs/TaskChain.py +777 -0
- WMCore/WMSpec/StdSpecs/__init__.py +9 -0
- WMCore/WMSpec/Steps/BuildMaster.py +87 -0
- WMCore/WMSpec/Steps/BuildTools.py +201 -0
- WMCore/WMSpec/Steps/Builder.py +97 -0
- WMCore/WMSpec/Steps/Builders/AlcaHarvest.py +31 -0
- WMCore/WMSpec/Steps/Builders/CMSSW.py +34 -0
- WMCore/WMSpec/Steps/Builders/DQMUpload.py +34 -0
- WMCore/WMSpec/Steps/Builders/DeleteFiles.py +34 -0
- WMCore/WMSpec/Steps/Builders/LogArchive.py +34 -0
- WMCore/WMSpec/Steps/Builders/LogCollect.py +34 -0
- WMCore/WMSpec/Steps/Builders/StageOut.py +34 -0
- WMCore/WMSpec/Steps/Builders/__init__.py +8 -0
- WMCore/WMSpec/Steps/Diagnostic.py +89 -0
- WMCore/WMSpec/Steps/Diagnostics/AlcaHarvest.py +72 -0
- WMCore/WMSpec/Steps/Diagnostics/CMSSW.py +302 -0
- WMCore/WMSpec/Steps/Diagnostics/DQMUpload.py +70 -0
- WMCore/WMSpec/Steps/Diagnostics/DeleteFiles.py +67 -0
- WMCore/WMSpec/Steps/Diagnostics/Generic.py +18 -0
- WMCore/WMSpec/Steps/Diagnostics/LogArchive.py +76 -0
- WMCore/WMSpec/Steps/Diagnostics/LogCollect.py +80 -0
- WMCore/WMSpec/Steps/Diagnostics/StageOut.py +77 -0
- WMCore/WMSpec/Steps/Diagnostics/__init__.py +8 -0
- WMCore/WMSpec/Steps/Emulator.py +62 -0
- WMCore/WMSpec/Steps/Emulators/AlcaHarvest.py +50 -0
- WMCore/WMSpec/Steps/Emulators/CMSSW.py +52 -0
- WMCore/WMSpec/Steps/Emulators/DQMUpload.py +50 -0
- WMCore/WMSpec/Steps/Emulators/DeleteFiles.py +50 -0
- WMCore/WMSpec/Steps/Emulators/LogArchive.py +83 -0
- WMCore/WMSpec/Steps/Emulators/LogCollect.py +66 -0
- WMCore/WMSpec/Steps/Emulators/StageOut.py +50 -0
- WMCore/WMSpec/Steps/Emulators/__init__.py +10 -0
- WMCore/WMSpec/Steps/ExecuteMaster.py +208 -0
- WMCore/WMSpec/Steps/Executor.py +210 -0
- WMCore/WMSpec/Steps/Executors/AlcaHarvest.py +206 -0
- WMCore/WMSpec/Steps/Executors/CMSSW.py +473 -0
- WMCore/WMSpec/Steps/Executors/DQMUpload.py +295 -0
- WMCore/WMSpec/Steps/Executors/DeleteFiles.py +161 -0
- WMCore/WMSpec/Steps/Executors/LogArchive.py +309 -0
- WMCore/WMSpec/Steps/Executors/LogCollect.py +284 -0
- WMCore/WMSpec/Steps/Executors/StageOut.py +325 -0
- WMCore/WMSpec/Steps/Executors/__init__.py +8 -0
- WMCore/WMSpec/Steps/Fetchers/CMSSWFetcher.py +49 -0
- WMCore/WMSpec/Steps/Fetchers/FetcherInterface.py +45 -0
- WMCore/WMSpec/Steps/Fetchers/PileupFetcher.py +247 -0
- WMCore/WMSpec/Steps/Fetchers/URLFetcher.py +61 -0
- WMCore/WMSpec/Steps/Fetchers/__init__.py +9 -0
- WMCore/WMSpec/Steps/StepFactory.py +213 -0
- WMCore/WMSpec/Steps/TaskEmulator.py +75 -0
- WMCore/WMSpec/Steps/Template.py +204 -0
- WMCore/WMSpec/Steps/Templates/AlcaHarvest.py +76 -0
- WMCore/WMSpec/Steps/Templates/CMSSW.py +613 -0
- WMCore/WMSpec/Steps/Templates/DQMUpload.py +59 -0
- WMCore/WMSpec/Steps/Templates/DeleteFiles.py +70 -0
- WMCore/WMSpec/Steps/Templates/LogArchive.py +84 -0
- WMCore/WMSpec/Steps/Templates/LogCollect.py +105 -0
- WMCore/WMSpec/Steps/Templates/StageOut.py +105 -0
- WMCore/WMSpec/Steps/Templates/__init__.py +10 -0
- WMCore/WMSpec/Steps/WMExecutionFailure.py +21 -0
- WMCore/WMSpec/Steps/__init__.py +8 -0
- WMCore/WMSpec/Utilities.py +63 -0
- WMCore/WMSpec/WMSpecErrors.py +12 -0
- WMCore/WMSpec/WMStep.py +347 -0
- WMCore/WMSpec/WMTask.py +1980 -0
- WMCore/WMSpec/WMWorkload.py +2288 -0
- WMCore/WMSpec/WMWorkloadTools.py +370 -0
- WMCore/WMSpec/__init__.py +9 -0
- WMCore/WorkQueue/DataStructs/CouchWorkQueueElement.py +148 -0
- WMCore/WorkQueue/DataStructs/WorkQueueElement.py +274 -0
- WMCore/WorkQueue/DataStructs/__init__.py +0 -0
- WMCore/WorkQueue/__init__.py +13 -0
- WMCore/Wrappers/JsonWrapper/JSONThunker.py +342 -0
- WMCore/Wrappers/JsonWrapper/__init__.py +7 -0
- WMCore/Wrappers/__init__.py +6 -0
- WMCore/__init__.py +10 -0
- reqmgr2-2.3.10.data/data/bin/wmc-dist-patch +15 -0
- reqmgr2-2.3.10.data/data/bin/wmc-dist-unpatch +8 -0
- reqmgr2-2.3.10.data/data/bin/wmc-httpd +3 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ConfigCache/_id +1 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ConfigCache/couchapp.json +5 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ConfigCache/language +1 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ConfigCache/views/config_by_label/map.js +12 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ConfigCache/views/config_by_md5hash/map.js +7 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ConfigCache/views/config_by_owner/map.js +15 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ConfigCache/views/config_by_psethash/map.js +7 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ConfigCache/views/config_type/map.js +10 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ConfigCache/views/group_name/map.js +10 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ConfigCache/views/groups/map.js +10 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ConfigCache/views/groups/reduce.js +12 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ConfigCache/views/owner_name_group/map.js +7 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ConfigCache/views/runseq_by_owner/map.js +10 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ConfigCache/views/runsequence_type/map.js +10 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ConfigCache/views/seedseq_by_owner/map.js +10 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ConfigCache/views/types/map.js +7 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/_id +1 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/couchapp.json +5 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/language +1 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/updates/totalstats.js +39 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/updates/updaterequest.js +105 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/validate_doc_update.js +6 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/views/bycampaign/map.js +5 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/views/bydatapileup/map.js +21 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/views/bydate/map.js +14 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/views/byinputdataset/map.js +21 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/views/bymcpileup/map.js +21 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/views/byoriginalrequest/map.js +6 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/views/byoutputdataset/map.js +7 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/views/byparentageflag/map.js +5 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/views/byprepid/map.js +22 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/views/byrequest/map.js +3 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/views/bystatus/map.js +7 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/views/bystatusandrequestor/map.js +3 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/views/bystatusandtime/map.js +7 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/views/bystatusandtypeandrequestor/map.js +3 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/views/byteamandstatus/map.js +5 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/views/bytype/map.js +3 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/views/childresubmissionrequests/map.js +10 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/views/requestsbystatusandtype/map.js +3 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgr/views/requestsincludeparents/map.js +11 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgrAux/_id +1 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgrAux/couchapp.json +5 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgrAux/filters/filterDeletedDocs.js +3 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgrAux/language +1 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgrAux/validate_doc_update.js +6 -0
- reqmgr2-2.3.10.data/data/data/couchapps/ReqMgrAux/views/byconfig/map.js +5 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/ColVis.css +76 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/font-awesome.min.css +4 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/badge-circle-check-16.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/badge-circle-cross-16.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/badge-circle-plus-16.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/badge-square-check-16.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/cms_logo.gif +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/cms_logo.jpeg +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-bg_flat_55_fbec88_40x100.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-bg_glass_100_e4f1fb_1x400.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-bg_glass_75_d0e5f5_1x400.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-bg_glass_80_d7ebf9_1x400.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-bg_glass_85_dfeffc_1x400.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-bg_highlight-hard_55_5c9ccc_1x100.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-bg_inset-hard_100_f5f8f9_1x100.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-bg_inset-soft_100_fcfdfd_1x100.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-icons_217bc0_256x240.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-icons_2694e8_256x240.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-icons_2e83ff_256x240.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-icons_469bdd_256x240.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-icons_6da8d5_256x240.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-icons_cd0a0a_256x240.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-icons_d8e7f3_256x240.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/ui-icons_f9bd01_256x240.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/images/warning-16.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/jquery-ui-1.12.0.css +1312 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/jquery.dataTables.css +241 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/logdb.css +60 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/css/main_layout.css +565 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/fonts/FontAwesome.otf +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/fonts/fontawesome-webfont.eot +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/fonts/fontawesome-webfont.svg +565 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/fonts/fontawesome-webfont.ttf +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/fonts/fontawesome-webfont.woff +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/fonts/fontawesome-webfont.woff2 +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/Sorting icons.psd +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/back_disabled.jpg +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/back_enabled.jpg +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/error.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/favicon.ico +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/forward_disabled.jpg +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/forward_enabled.jpg +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/loader-1.gif +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/module.caption.backg.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/module.caption.backg.rolledup.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/rollup.gif +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/sort_asc.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/sort_asc_disabled.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/sort_both.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/sort_desc.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/sort_desc_disabled.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/stable.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/images/warning.png +0 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/index.html +105 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/index.html.min +106 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/index.html.org +125 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Controller/WMStats.ActiveRequestController.js +61 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Controller/WMStats.GenericController.js +38 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Controller/WMStats.WorkloadSummaryController.js +12 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Controller/import.js +6 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/T0/WMStats.RequestSummary.js +71 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/T0/WMStats.RunSummary.js +70 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/T1/WMStats.AgentRequestSummary.js +28 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/T1/WMStats.CMSSWSummary.js +28 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/T1/WMStats.CampaignSummary.js +28 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/T1/WMStats.ReqMgrRequest.js +10 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/T1/WMStats.RequestSummary.js +190 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.Agents.js +98 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.Alerts.js +21 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.Campaigns.js +25 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.GenericRequests.js +728 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.History.js +78 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.JobDetails.js +19 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.JobSummary.js +32 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.LogDBData.js +93 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.LogMessage.js +38 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.SiteSummary.js +24 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.Sites.js +25 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.Tasks.js +107 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats.WorkloadSummary.js +20 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/WMStats._StructBase.js +37 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/DataStruct/import.js +29 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/T0/WMStats.ActiveRequestModel.js +9 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/T0/WMStats.RequestLogDetailModel.js +17 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/T0/WMStats.RequestLogModel.js +14 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/T0/WMStats.RequestModel.js +3 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/T0/WMStats.RequestSearchModel.js +8 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/T1/WMStats.ActiveRequestModel.js +9 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/T1/WMStats.ReqMgrRequestModel.js +8 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/T1/WMStats.RequestLogDetailModel.js +18 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/T1/WMStats.RequestLogModel.js +14 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/T1/WMStats.RequestSearchModel.js +8 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/WMStats.AgentModel.js +3 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/WMStats.AlertModel.js +6 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/WMStats.HistoryModel.js +14 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/WMStats.JobDetailModel.js +22 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/WMStats.JobSummaryModel.js +18 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/WMStats.WorkloadSummaryModel.js +8 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/WMStats._AjaxModelBase.js +55 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/WMStats._ModelBase.js +77 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/WMStats._RequestModelBase.js +127 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Models/import.js +26 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/ViewModels/WMStats.ViewModel.js +511 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/ViewModels/import.js +2 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Controls/T0/WMStats.Controls.js +117 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Controls/T1/WMStats.Controls.js +158 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Controls/WMStats.CommonControls.js +100 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Controls/import.js +10 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Graphs/WMStats.SiteHistoryGraph.js +8 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Graphs/import.js +3 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/T0/WMStats.CategoryDetailList.js +38 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/T0/WMStats.RequestAlertGUI.js +128 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/T0/WMStats.RequestDataList.js +25 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/T0/WMStats.RequestDetailList.js +68 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/T0/WMStats.RequestSummaryList.js +31 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/T1/WMStats.CategoryDetailList.js +54 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/T1/WMStats.RequestAlertGUI.js +81 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/T1/WMStats.RequestDataList.js +26 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/T1/WMStats.RequestDetailList.js +122 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/T1/WMStats.RequestSummaryList.js +35 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/T1/WMStats.ResubmissionList.js +64 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/WMStats.AgentDetailList.js +137 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/WMStats.CategoryTitle.js +20 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/WMStats.HTMLList.js +12 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/WMStats.JobDetailList.js +178 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/WMStats.RequestLogList.js +88 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/WMStats.RequestTitle.js +33 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/HTMLList/import.js +25 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T0/WMStats.ActiveRequestTable.js +142 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T0/WMStats.RunSummaryTable.js +77 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T0/WMStats.TaskSummaryTable.js +127 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T0/addCategoryMap.js +10 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T1/WMStats.ActiveRequestTable.js +132 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T1/WMStats.ActiveRequestTableWithJob.js +164 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T1/WMStats.AgentRequestSummaryTable.js +78 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T1/WMStats.CMSSWSummaryTable.js +76 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T1/WMStats.CampaignSummaryTable.js +76 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T1/WMStats.SiteSummaryTable.js +63 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T1/WMStats.TaskSummaryTable.js +124 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/T1/addCategoryMap.js +17 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/WMStats.JobSummaryTable.js +71 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/WMStats.Table.js +70 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/WMStats.TableController.js +130 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/WMStats.WorkloadSummaryTable.js +62 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/Tables/import.js +26 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/WMStats.CategoryMap.js +45 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/WMStats.View.IndexHTML.js +137 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/Views/import.js +3 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/WMStats.Ajax.js +74 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/WMStats.Couch.js +83 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/WMStats.Globals.js +200 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/WMStats.Utils.js +283 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/import-all.min.js +7 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/loader.js +27 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/minified/global.min.js +639 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/minified/import-all-t0.min.js +4317 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/js/minified/import-all-t1.min.js +4972 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/lib/jquery.dataTables.columnFilter.js +732 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/_attachments/lib/namespace.js +23 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/filters/deleteFatDocFilter.js +3 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/filters/filterDeletedDocs.js +3 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/filters/repfilter.js +7 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/rewrites.json +110 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/shows/redirect.js +23 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/updates/agentInfo.js +17 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/updates/generalFields.js +11 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/updates/insertRequest.js +13 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/updates/jobLogArchiveLocation.js +10 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/updates/jobStateTransition.js +17 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/updates/jobSummaryState.js +5 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/updates/totalStats.js +39 -0
- reqmgr2-2.3.10.data/data/data/couchapps/WMStats/validate_doc_update.js +10 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/img/cms_logo.jpg +0 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/img/details_closed.gif +0 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/img/details_open.gif +0 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/img/feed-icon.png +0 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/img/gradientfromtop.gif +0 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/img/loading-small.gif +0 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/img/loading.gif +0 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/img/shadow.gif +0 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/index.html +67 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/javascript/ajax_utils.js +104 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/javascript/config.js +10 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/javascript/md5.js +184 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/javascript/prototype.js +7510 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/javascript/requestsview.js +189 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/javascript/task_splitting.js +190 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/javascript/utils.js +337 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/jinja_templates/admin.tmpl +217 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/jinja_templates/apis.tmpl +36 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/jinja_templates/approve.tmpl +112 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/jinja_templates/assign.tmpl +252 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/jinja_templates/batch.tmpl +72 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/jinja_templates/batches.tmpl +63 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/jinja_templates/confirm.tmpl +34 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/jinja_templates/create.tmpl +112 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/jinja_templates/doc.tmpl +152 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/jinja_templates/error.tmpl +6 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/jinja_templates/filter_sort.tmpl +55 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/jinja_templates/generic.tmpl +6 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/jinja_templates/index.tmpl +24 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/jinja_templates/main.tmpl +33 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/jinja_templates/manualConversions.txt +57 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/jinja_templates/menu.tmpl +16 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/jinja_templates/requests.tmpl +51 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/jinja_templates/search.tmpl +22 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/jinja_templates/validate.tmpl +9 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/jinja_templates/workflow.tmpl +34 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/style/kube.min.css +1 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/style/main.css +194 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/style/style.css +249 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/admin.tmpl +217 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/apis.tmpl +36 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/approve.tmpl +114 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/assign.tmpl +253 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/batch.tmpl +72 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/batches.tmpl +63 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/confirm.tmpl +35 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/create.tmpl +112 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/doc.tmpl +153 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/error.tmpl +6 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/filter_sort.tmpl +55 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/generic.tmpl +6 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/index.tmpl +24 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/json/DataProcessing.tmpl +34 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/json/MonteCarlo.tmpl +29 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/json/ReDigi.tmpl +41 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/json/ReReco.tmpl +38 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/json/Resubmission.tmpl +22 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/json/StoreResults.tmpl +24 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/main.tmpl +33 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/menu.tmpl +16 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/requests.tmpl +51 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/search.tmpl +22 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/validate.tmpl +9 -0
- reqmgr2-2.3.10.data/data/data/html/ReqMgr/templates/workflow.tmpl +34 -0
- reqmgr2-2.3.10.dist-info/LICENSE +202 -0
- reqmgr2-2.3.10.dist-info/METADATA +24 -0
- reqmgr2-2.3.10.dist-info/NOTICE +16 -0
- reqmgr2-2.3.10.dist-info/RECORD +678 -0
- reqmgr2-2.3.10.dist-info/WHEEL +5 -0
- reqmgr2-2.3.10.dist-info/top_level.txt +3 -0
|
@@ -0,0 +1,325 @@
|
|
|
1
|
+
#!/usr/bin/env python
|
|
2
|
+
"""
|
|
3
|
+
_Step.Executor.StageOut_
|
|
4
|
+
|
|
5
|
+
Implementation of an Executor for a StageOut step
|
|
6
|
+
|
|
7
|
+
"""
|
|
8
|
+
from __future__ import print_function
|
|
9
|
+
|
|
10
|
+
import logging
|
|
11
|
+
import os
|
|
12
|
+
import os.path
|
|
13
|
+
import signal
|
|
14
|
+
import sys
|
|
15
|
+
|
|
16
|
+
from WMCore.Algorithms.Alarm import Alarm, alarmHandler
|
|
17
|
+
from WMCore.FwkJobReport.Report import Report
|
|
18
|
+
from WMCore.Lexicon import lfn as lfnRegEx
|
|
19
|
+
from WMCore.Lexicon import userLfn as userLfnRegEx
|
|
20
|
+
from WMCore.Storage.FileManager import StageOutMgr as FMStageOutMgr
|
|
21
|
+
from WMCore.Storage.StageOutMgr import StageOutMgr
|
|
22
|
+
from WMCore.WMSpec.Steps.Executor import Executor
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
class StageOut(Executor):
|
|
26
|
+
"""
|
|
27
|
+
_StageOut_
|
|
28
|
+
|
|
29
|
+
Execute a StageOut Step
|
|
30
|
+
|
|
31
|
+
"""
|
|
32
|
+
|
|
33
|
+
def pre(self, emulator=None):
|
|
34
|
+
"""
|
|
35
|
+
_pre_
|
|
36
|
+
|
|
37
|
+
Pre execution checks
|
|
38
|
+
|
|
39
|
+
"""
|
|
40
|
+
|
|
41
|
+
# Are we using an emulator?
|
|
42
|
+
if emulator is not None:
|
|
43
|
+
return emulator.emulatePre(self.step)
|
|
44
|
+
|
|
45
|
+
logging.info("Steps.Executors.%s.pre called", self.__class__.__name__)
|
|
46
|
+
return None
|
|
47
|
+
|
|
48
|
+
def execute(self, emulator=None):
|
|
49
|
+
"""
|
|
50
|
+
_execute_
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
"""
|
|
54
|
+
# Are we using emulators again?
|
|
55
|
+
if emulator is not None:
|
|
56
|
+
return emulator.emulate(self.step, self.job)
|
|
57
|
+
|
|
58
|
+
logging.info("Steps.Executors.%s.execute called", self.__class__.__name__)
|
|
59
|
+
|
|
60
|
+
overrides = {}
|
|
61
|
+
if hasattr(self.step, 'override'):
|
|
62
|
+
overrides = self.step.override.dictionary_()
|
|
63
|
+
# propagete upstream cmsRun outcome such that we can decide whether to
|
|
64
|
+
# stage files out or not
|
|
65
|
+
self.failedPreviousStep = overrides.get('previousCmsRunFailure', False)
|
|
66
|
+
|
|
67
|
+
# Set wait to two hours per retry
|
|
68
|
+
# this alarm leaves a subprocess behing that may cause trouble, see #6273
|
|
69
|
+
waitTime = overrides.get('waitTime', 7200 * self.step.retryCount)
|
|
70
|
+
|
|
71
|
+
logging.info("StageOut override is: %s ", self.step)
|
|
72
|
+
|
|
73
|
+
# Pull out StageOutMgr Overrides
|
|
74
|
+
|
|
75
|
+
# switch between old stageOut behavior and new, fancy stage out behavior
|
|
76
|
+
useNewStageOutCode = False
|
|
77
|
+
if getattr(self.step, 'newStageout', False) or \
|
|
78
|
+
('newStageOut' in overrides and overrides.get('newStageOut')):
|
|
79
|
+
useNewStageOutCode = True
|
|
80
|
+
|
|
81
|
+
stageOutCall = {}
|
|
82
|
+
if "command" in overrides and "option" in overrides \
|
|
83
|
+
and "phedex-node" in overrides \
|
|
84
|
+
and "lfn-prefix" in overrides:
|
|
85
|
+
logging.critical('using override in StageOut')
|
|
86
|
+
stageOutCall['command'] = overrides.get('command')
|
|
87
|
+
stageOutCall['option'] = overrides.get('option')
|
|
88
|
+
stageOutCall['phedex-node'] = overrides.get('phedex-node')
|
|
89
|
+
stageOutCall['lfn-prefix'] = overrides.get('lfn-prefix')
|
|
90
|
+
|
|
91
|
+
# naw man, this is real
|
|
92
|
+
# iterate over all the incoming files
|
|
93
|
+
if not useNewStageOutCode:
|
|
94
|
+
# old style
|
|
95
|
+
manager = StageOutMgr(**stageOutCall)
|
|
96
|
+
manager.numberOfRetries = self.step.retryCount
|
|
97
|
+
manager.retryPauseTime = self.step.retryDelay
|
|
98
|
+
else:
|
|
99
|
+
# new style
|
|
100
|
+
logging.critical("STAGEOUT IS USING NEW STAGEOUT CODE")
|
|
101
|
+
manager = FMStageOutMgr(retryPauseTime=self.step.retryDelay,
|
|
102
|
+
numberOfRetries=self.step.retryCount,
|
|
103
|
+
**stageOutCall)
|
|
104
|
+
|
|
105
|
+
# We need to find a list of steps in our task
|
|
106
|
+
# And eventually a list of jobReports for out steps
|
|
107
|
+
|
|
108
|
+
# Search through steps for report files
|
|
109
|
+
filesTransferred = []
|
|
110
|
+
|
|
111
|
+
for step in self.stepSpace.taskSpace.stepSpaces():
|
|
112
|
+
if step == self.stepName:
|
|
113
|
+
# Don't try to parse your own report; it's not there yet
|
|
114
|
+
continue
|
|
115
|
+
stepLocation = os.path.join(self.stepSpace.taskSpace.location, step)
|
|
116
|
+
logging.info("Beginning report processing for step %s", step)
|
|
117
|
+
reportLocation = os.path.join(stepLocation, 'Report.pkl')
|
|
118
|
+
if not os.path.isfile(reportLocation):
|
|
119
|
+
logging.error("Cannot find report for step %s in space %s", step, stepLocation)
|
|
120
|
+
continue
|
|
121
|
+
# First, get everything from a file and 'unpersist' it
|
|
122
|
+
stepReport = Report()
|
|
123
|
+
stepReport.unpersist(reportLocation, step)
|
|
124
|
+
|
|
125
|
+
# Don't stage out files from bad steps. Each step has its own Report.pkl file
|
|
126
|
+
# We need to check all steps executed so far, otherwise it might stage out
|
|
127
|
+
# files for chained steps when the overall job has already failed to process
|
|
128
|
+
# one of them
|
|
129
|
+
if not stepReport.stepSuccessful(step) or self.failedPreviousStep:
|
|
130
|
+
msg = "Either the step did not succeed or an upstream step failed. "
|
|
131
|
+
msg += "Skipping stage out of any root output files in this job."
|
|
132
|
+
logging.warning(msg)
|
|
133
|
+
continue
|
|
134
|
+
|
|
135
|
+
# Okay, time to start using stuff
|
|
136
|
+
# Now I'm a bit confused about this; each report should ONLY
|
|
137
|
+
# Have the results of that particular step in it,
|
|
138
|
+
# So getting all the files should get ONLY the files
|
|
139
|
+
# for that step; or so I hope
|
|
140
|
+
files = stepReport.getAllFileRefsFromStep(step=step)
|
|
141
|
+
for fileName in files:
|
|
142
|
+
|
|
143
|
+
# make sure the file information is consistent
|
|
144
|
+
if hasattr(fileName, 'pfn') and (not hasattr(fileName, 'lfn') or not hasattr(fileName, 'module_label')):
|
|
145
|
+
msg = "Not a valid file: %s" % fileName
|
|
146
|
+
logging.error(msg)
|
|
147
|
+
continue
|
|
148
|
+
|
|
149
|
+
# Figuring out if we should do straight to merge
|
|
150
|
+
# - should we do straight to merge at all ?
|
|
151
|
+
# - is straight to merge disabled for this output ?
|
|
152
|
+
# - are we over the size threshold
|
|
153
|
+
# - are we over the event threshold ?
|
|
154
|
+
straightToMerge = False
|
|
155
|
+
if not getattr(fileName, 'merged', False):
|
|
156
|
+
if hasattr(fileName, 'dataset') and fileName.dataset.get('dataTier', "") in ["NANOAOD",
|
|
157
|
+
"NANOAODSIM"]:
|
|
158
|
+
logging.info("NANOAOD and NANOAODSIM files never go straight to merge!")
|
|
159
|
+
elif fileName.module_label not in getattr(self.step.output, 'forceUnmergedOutputs', []):
|
|
160
|
+
if hasattr(self.step.output, 'minMergeSize') and getattr(fileName, 'size',
|
|
161
|
+
0) >= self.step.output.minMergeSize:
|
|
162
|
+
logging.info("Sending %s straight to merge due to minMergeSize", fileName.lfn)
|
|
163
|
+
straightToMerge = True
|
|
164
|
+
elif getattr(fileName, 'events', 0) >= getattr(self.step.output, 'maxMergeEvents', sys.maxsize):
|
|
165
|
+
logging.info("Sending %s straight to merge due to maxMergeEvents", fileName.lfn)
|
|
166
|
+
straightToMerge = True
|
|
167
|
+
|
|
168
|
+
if straightToMerge:
|
|
169
|
+
try:
|
|
170
|
+
fileName = self.handleLFNForMerge(mergefile=fileName, step=step)
|
|
171
|
+
except Exception as ex:
|
|
172
|
+
logging.info("minMergeSize: %s", getattr(self.step.output, 'minMergeSize', None))
|
|
173
|
+
logging.info("maxMergeEvents: %s", getattr(self.step.output, 'maxMergeEvents', None))
|
|
174
|
+
logging.error("Encountered error while handling LFN for merge %s", fileName)
|
|
175
|
+
logging.error(str(ex))
|
|
176
|
+
manager.cleanSuccessfulStageOuts()
|
|
177
|
+
stepReport.addError(self.stepName, 60401, "DirectToMergeFailure", str(ex))
|
|
178
|
+
|
|
179
|
+
# Save the input PFN in case we need it
|
|
180
|
+
# Undecided whether to move fileName.pfn to the output PFN
|
|
181
|
+
fileName.InputPFN = fileName.pfn
|
|
182
|
+
lfn = fileName.lfn
|
|
183
|
+
fileSource = getattr(fileName, 'Source', None)
|
|
184
|
+
if fileSource in ['TFileService', 'UserDefined']:
|
|
185
|
+
userLfnRegEx(lfn)
|
|
186
|
+
else:
|
|
187
|
+
lfnRegEx(lfn)
|
|
188
|
+
|
|
189
|
+
fileForTransfer = {'LFN': lfn,
|
|
190
|
+
'PFN': getattr(fileName, 'pfn'),
|
|
191
|
+
'PNN': None,
|
|
192
|
+
'StageOutCommand': None,
|
|
193
|
+
'Checksums': getattr(fileName, 'checksums', None)}
|
|
194
|
+
|
|
195
|
+
signal.signal(signal.SIGALRM, alarmHandler)
|
|
196
|
+
signal.alarm(waitTime)
|
|
197
|
+
try:
|
|
198
|
+
manager(fileForTransfer)
|
|
199
|
+
# Afterwards, the file should have updated info.
|
|
200
|
+
filesTransferred.append(fileForTransfer)
|
|
201
|
+
fileName.StageOutCommand = fileForTransfer['StageOutCommand']
|
|
202
|
+
fileName.location = fileForTransfer['PNN']
|
|
203
|
+
fileName.OutputPFN = fileForTransfer['PFN']
|
|
204
|
+
except Alarm:
|
|
205
|
+
msg = "Indefinite hang during stageOut of logArchive"
|
|
206
|
+
logging.error(msg)
|
|
207
|
+
manager.cleanSuccessfulStageOuts()
|
|
208
|
+
stepReport.addError(self.stepName, 60403, "StageOutTimeout", msg)
|
|
209
|
+
# well, if it fails for one file, it fails for the whole job...
|
|
210
|
+
break
|
|
211
|
+
except Exception as ex:
|
|
212
|
+
manager.cleanSuccessfulStageOuts()
|
|
213
|
+
stepReport.addError(self.stepName, 60307, "StageOutFailure", str(ex))
|
|
214
|
+
stepReport.persist(reportLocation)
|
|
215
|
+
raise
|
|
216
|
+
|
|
217
|
+
signal.alarm(0)
|
|
218
|
+
|
|
219
|
+
# Am DONE with report. Persist it
|
|
220
|
+
stepReport.persist(reportLocation)
|
|
221
|
+
|
|
222
|
+
# Done with all steps, and should have a list of
|
|
223
|
+
# stagedOut files in fileForTransfer
|
|
224
|
+
logging.info("Transferred %i files", len(filesTransferred))
|
|
225
|
+
return
|
|
226
|
+
|
|
227
|
+
def post(self, emulator=None):
|
|
228
|
+
"""
|
|
229
|
+
_post_
|
|
230
|
+
|
|
231
|
+
Post execution checkpointing
|
|
232
|
+
|
|
233
|
+
"""
|
|
234
|
+
# Another emulator check
|
|
235
|
+
if emulator is not None:
|
|
236
|
+
return emulator.emulatePost(self.step)
|
|
237
|
+
|
|
238
|
+
logging.info("Steps.Executors.%s.post called", self.__class__.__name__)
|
|
239
|
+
|
|
240
|
+
for step in self.stepSpace.taskSpace.stepSpaces():
|
|
241
|
+
|
|
242
|
+
if step == self.stepName:
|
|
243
|
+
# Don't try to parse your own report; it's not there yet
|
|
244
|
+
continue
|
|
245
|
+
|
|
246
|
+
stepLocation = os.path.join(self.stepSpace.taskSpace.location, step)
|
|
247
|
+
logging.info("Beginning report processing for step %s", step)
|
|
248
|
+
|
|
249
|
+
reportLocation = os.path.join(stepLocation, 'Report.pkl')
|
|
250
|
+
if not os.path.isfile(reportLocation):
|
|
251
|
+
logging.error("Cannot find report for step %s in space %s", step, stepLocation)
|
|
252
|
+
continue
|
|
253
|
+
|
|
254
|
+
# First, get everything from a file and 'unpersist' it
|
|
255
|
+
stepReport = Report(step)
|
|
256
|
+
stepReport.unpersist(reportLocation)
|
|
257
|
+
|
|
258
|
+
# Don't stage out files from bad steps.
|
|
259
|
+
if not stepReport.stepSuccessful(step):
|
|
260
|
+
continue
|
|
261
|
+
|
|
262
|
+
files = stepReport.getAllFileRefsFromStep(step=step)
|
|
263
|
+
for fileInfo in files:
|
|
264
|
+
if hasattr(fileInfo, 'lfn') and hasattr(fileInfo, 'location') and hasattr(fileInfo, 'guid'):
|
|
265
|
+
fileInfo.user_dn = getattr(self.step, "userDN", None)
|
|
266
|
+
fileInfo.async_dest = getattr(self.step, "asyncDest", None)
|
|
267
|
+
fileInfo.user_vogroup = getattr(self.step, "owner_vogroup", '')
|
|
268
|
+
fileInfo.user_vorole = getattr(self.step, "owner_vorole", '')
|
|
269
|
+
|
|
270
|
+
stepReport.persist(reportLocation)
|
|
271
|
+
|
|
272
|
+
return None
|
|
273
|
+
|
|
274
|
+
# Accessory methods
|
|
275
|
+
def handleLFNForMerge(self, mergefile, step):
|
|
276
|
+
"""
|
|
277
|
+
_handleLFNForMerge_
|
|
278
|
+
|
|
279
|
+
Digs up unmerged LFN out of WMStep outputModule and
|
|
280
|
+
changes the current file to match.
|
|
281
|
+
Requires a mergedLFNBase in the WMSpec output module
|
|
282
|
+
"""
|
|
283
|
+
|
|
284
|
+
# First get the output module
|
|
285
|
+
# Do this by finding the name in the step report
|
|
286
|
+
# And then finding that module in the WMStep Helper
|
|
287
|
+
|
|
288
|
+
outputName = getattr(mergefile, 'module_label', None)
|
|
289
|
+
if not outputName:
|
|
290
|
+
logging.error("Attempt to merge directly failed due to " \
|
|
291
|
+
+ "No module_label in file.")
|
|
292
|
+
if outputName.lower() == "merged":
|
|
293
|
+
# Don't skip merge for merged files!
|
|
294
|
+
return mergefile
|
|
295
|
+
stepHelper = self.task.getStep(stepName=step)
|
|
296
|
+
outputMod = stepHelper.getOutputModule(moduleName=outputName)
|
|
297
|
+
|
|
298
|
+
if not outputMod:
|
|
299
|
+
# Then we couldn't get the output module
|
|
300
|
+
logging.error("Attempt to directly merge failed " \
|
|
301
|
+
+ "due to no output module %s in WMStep" \
|
|
302
|
+
% (outputName))
|
|
303
|
+
return mergefile
|
|
304
|
+
|
|
305
|
+
# Okay, now we should have the output Module
|
|
306
|
+
# Now we just need a second LFN
|
|
307
|
+
|
|
308
|
+
newBase = getattr(outputMod, 'mergedLFNBase', None)
|
|
309
|
+
oldBase = getattr(outputMod, 'lfnBase', None)
|
|
310
|
+
|
|
311
|
+
if not newBase:
|
|
312
|
+
# Then we don't have a base to change it to
|
|
313
|
+
logging.error("Direct to Merge failed due to no mergedLFNBase in %s", outputName)
|
|
314
|
+
return mergefile
|
|
315
|
+
|
|
316
|
+
# Replace the actual LFN base
|
|
317
|
+
oldLFN = getattr(mergefile, 'lfn')
|
|
318
|
+
newLFN = oldLFN.replace(oldBase, newBase)
|
|
319
|
+
|
|
320
|
+
# Set the file attributes
|
|
321
|
+
setattr(mergefile, 'lfn', newLFN)
|
|
322
|
+
setattr(mergefile, 'merged', True)
|
|
323
|
+
|
|
324
|
+
# Return the file
|
|
325
|
+
return mergefile
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
#!/usr/bin/env python
|
|
2
|
+
"""
|
|
3
|
+
_CMSSWFetcher_
|
|
4
|
+
|
|
5
|
+
Fetch configfiles and PSet TWeaks for CMSSW Steps in a WMTask
|
|
6
|
+
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
from future import standard_library
|
|
10
|
+
standard_library.install_aliases()
|
|
11
|
+
|
|
12
|
+
from WMCore.WMSpec.Steps.Fetchers.FetcherInterface import FetcherInterface
|
|
13
|
+
from WMCore.Cache.WMConfigCache import ConfigCache
|
|
14
|
+
|
|
15
|
+
import WMCore.WMSpec.WMStep as WMStep
|
|
16
|
+
|
|
17
|
+
class CMSSWFetcher(FetcherInterface):
|
|
18
|
+
"""
|
|
19
|
+
_CMSSWFetcher_
|
|
20
|
+
|
|
21
|
+
Pull configs from local config cache and add to sandbox.
|
|
22
|
+
"""
|
|
23
|
+
def __call__(self, wmTask):
|
|
24
|
+
"""
|
|
25
|
+
Trip through steps, find CMSSW steps, pull in config files,
|
|
26
|
+
PSet Tweaks etc
|
|
27
|
+
|
|
28
|
+
"""
|
|
29
|
+
for t in wmTask.steps().nodeIterator():
|
|
30
|
+
t = WMStep.WMStepHelper(t)
|
|
31
|
+
stepPath = "%s/%s" % (self.workingDirectory(), t.name())
|
|
32
|
+
|
|
33
|
+
# the CMSSW has a special case with its ConfigCache argument
|
|
34
|
+
if not t.stepType() in ("CMSSW"):
|
|
35
|
+
continue
|
|
36
|
+
if getattr(t.data.application.configuration, 'configCacheUrl', None) != None:
|
|
37
|
+
# main config file
|
|
38
|
+
fileTarget = "%s/%s" % (stepPath, t.data.application.command.configuration)
|
|
39
|
+
#urllib.request.urlretrieve(
|
|
40
|
+
# t.data.application.configuration.retrieveConfigUrl,
|
|
41
|
+
# fileTarget)
|
|
42
|
+
# PSet Tweak
|
|
43
|
+
cacheUrl = t.data.application.configuration.configCacheUrl
|
|
44
|
+
cacheDb = t.data.application.configuration.cacheName
|
|
45
|
+
configId = t.data.application.configuration.configId
|
|
46
|
+
|
|
47
|
+
configCache = ConfigCache(cacheUrl, cacheDb)
|
|
48
|
+
configCache.loadByID(configId)
|
|
49
|
+
configCache.saveConfigToDisk(targetFile = fileTarget)
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
#!/usr/bin/env python
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
from builtins import object
|
|
7
|
+
class FetcherInterface(object):
|
|
8
|
+
"""
|
|
9
|
+
_FetcherInterface_
|
|
10
|
+
|
|
11
|
+
define standard interface for fetcher implementations.
|
|
12
|
+
|
|
13
|
+
Init takes the working directory for the sandbox
|
|
14
|
+
|
|
15
|
+
Call invokes the fetcher on a WMTask instance
|
|
16
|
+
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
def __init__(self):
|
|
20
|
+
self.workingDir = None
|
|
21
|
+
self.cacheDir = None
|
|
22
|
+
|
|
23
|
+
def setWorkingDirectory(self, workingDir):
|
|
24
|
+
self.workingDir = workingDir
|
|
25
|
+
|
|
26
|
+
def workingDirectory(self):
|
|
27
|
+
return self.workingDir
|
|
28
|
+
|
|
29
|
+
def setCacheDirectory(self, cacheDir):
|
|
30
|
+
self.cacheDir = cacheDir
|
|
31
|
+
|
|
32
|
+
def cacheDirectory(self):
|
|
33
|
+
return self.cacheDir
|
|
34
|
+
|
|
35
|
+
def __call__(self, wmTaskHelper):
|
|
36
|
+
"""
|
|
37
|
+
_operator(wmTask)_
|
|
38
|
+
|
|
39
|
+
Override to pull infomation from the WMTask, retrieve information and
|
|
40
|
+
then insert it into the sandbox
|
|
41
|
+
|
|
42
|
+
"""
|
|
43
|
+
msg = "FetcherInterface.__call__(wmTask) not overridden by:\n"
|
|
44
|
+
msg += "%s implementation\n" % self.__class__.__name__
|
|
45
|
+
raise NotImplementedError(msg)
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Given a pile up dataset, pull the information required to cache the list
|
|
3
|
+
of pileup files in the job sandbox for the dataset.
|
|
4
|
+
|
|
5
|
+
"""
|
|
6
|
+
import datetime
|
|
7
|
+
import os
|
|
8
|
+
import hashlib
|
|
9
|
+
import shutil
|
|
10
|
+
import time
|
|
11
|
+
import logging
|
|
12
|
+
from json import JSONEncoder
|
|
13
|
+
import WMCore.WMSpec.WMStep as WMStep
|
|
14
|
+
from Utils.Patterns import getDomainName
|
|
15
|
+
from Utils.Utilities import encodeUnicodeToBytes
|
|
16
|
+
from WMCore.Services.DBS.DBSReader import DBSReader
|
|
17
|
+
from WMCore.Services.MSUtils.MSUtils import getPileupDocs
|
|
18
|
+
from WMCore.Services.Rucio.Rucio import Rucio
|
|
19
|
+
from WMCore.WMSpec.Steps.Fetchers.FetcherInterface import FetcherInterface
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class PileupFetcher(FetcherInterface):
|
|
23
|
+
"""
|
|
24
|
+
Pull dataset block/SE : LFN list from DBS for the
|
|
25
|
+
pileup datasets required by the steps in the job.
|
|
26
|
+
|
|
27
|
+
Save these maps as files in the sandbox
|
|
28
|
+
|
|
29
|
+
"""
|
|
30
|
+
def __init__(self):
|
|
31
|
+
"""
|
|
32
|
+
Prepare module setup
|
|
33
|
+
"""
|
|
34
|
+
super(PileupFetcher, self).__init__()
|
|
35
|
+
self.rucioAcct = "wmcore_pileup"
|
|
36
|
+
self.rucio = None
|
|
37
|
+
|
|
38
|
+
def _queryDbsAndGetPileupConfig(self, stepHelper, dbsReader):
|
|
39
|
+
"""
|
|
40
|
+
Method iterates over components of the pileup configuration input
|
|
41
|
+
and queries DBS for valid files in the dataset, plus some extra
|
|
42
|
+
information about each file.
|
|
43
|
+
|
|
44
|
+
Information is organized at block level, listing all its files,
|
|
45
|
+
number of events in the block, and its data location (to be resolved
|
|
46
|
+
by a different method using either PhEDEx or Rucio), such as:
|
|
47
|
+
|
|
48
|
+
{"pileupTypeA": {"BlockA": {"FileList": [], "PhEDExNodeNames": [], "NumberOfEvents": 123},
|
|
49
|
+
"BlockB": {"FileList": [], "PhEDExNodeName": []}, ....}
|
|
50
|
+
"""
|
|
51
|
+
resultDict = {}
|
|
52
|
+
# first, figure out which instance of MSPileup and Rucio to use
|
|
53
|
+
pileupInstance = getDomainName(dbsReader.dbsURL)
|
|
54
|
+
msPileupUrl = f"https://{pileupInstance}.cern.ch/ms-pileup/data/pileup"
|
|
55
|
+
# FIXME: this juggling with Rucio is tough! We can get away without it,
|
|
56
|
+
# but for that we would have to use testbed MSPileup against Prod Rucio
|
|
57
|
+
if pileupInstance == "cmsweb-prod" or pileupInstance == "cmsweb":
|
|
58
|
+
rucioAuthUrl, rucioUrl = "cms-rucio-auth", "cms-rucio"
|
|
59
|
+
else:
|
|
60
|
+
rucioAuthUrl, rucioUrl = "cms-rucio-auth-int", "cms-rucio-int"
|
|
61
|
+
# initialize Rucio here to avoid this authentication on T0-WMAgent
|
|
62
|
+
self.rucio = Rucio(self.rucioAcct,
|
|
63
|
+
authUrl=f"https://{rucioAuthUrl}.cern.ch",
|
|
64
|
+
hostUrl=f"http://{rucioUrl}.cern.ch")
|
|
65
|
+
|
|
66
|
+
# iterate over input pileup types (e.g. "cosmics", "minbias")
|
|
67
|
+
for pileupType in stepHelper.data.pileup.listSections_():
|
|
68
|
+
# the format here is: step.data.pileup.cosmics.dataset = [/some/data/set]
|
|
69
|
+
datasets = getattr(getattr(stepHelper.data.pileup, pileupType), "dataset")
|
|
70
|
+
# each dataset input can generally be a list, iterate over dataset names
|
|
71
|
+
blockDict = {}
|
|
72
|
+
for dataset in datasets:
|
|
73
|
+
# using the original dataset, resolve blocks, files and number of events with DBS
|
|
74
|
+
fCounter = 0
|
|
75
|
+
for fileInfo in dbsReader.getFileListByDataset(dataset=dataset, detail=True):
|
|
76
|
+
blockDict.setdefault(fileInfo['block_name'], {'FileList': [],
|
|
77
|
+
'NumberOfEvents': 0,
|
|
78
|
+
'PhEDExNodeNames': []})
|
|
79
|
+
blockDict[fileInfo['block_name']]['FileList'].append(fileInfo['logical_file_name'])
|
|
80
|
+
blockDict[fileInfo['block_name']]['NumberOfEvents'] += fileInfo['event_count']
|
|
81
|
+
fCounter += 1
|
|
82
|
+
|
|
83
|
+
logging.info(f"Found {len(blockDict)} blocks in DBS for dataset {dataset} with {fCounter} files")
|
|
84
|
+
self._getDatasetLocation(dataset, blockDict, msPileupUrl)
|
|
85
|
+
|
|
86
|
+
resultDict[pileupType] = blockDict
|
|
87
|
+
return resultDict
|
|
88
|
+
|
|
89
|
+
def _getDatasetLocation(self, dset, blockDict, msPileupUrl):
|
|
90
|
+
"""
|
|
91
|
+
Given a dataset name, query PhEDEx or Rucio and resolve the block location
|
|
92
|
+
:param dset: string with the dataset name
|
|
93
|
+
:param blockDict: dictionary with DBS summary info
|
|
94
|
+
:param msPileupUrl: string with the MSPileup url
|
|
95
|
+
:return: update blockDict in place
|
|
96
|
+
"""
|
|
97
|
+
# fetch the pileup configuration from MSPileup
|
|
98
|
+
try:
|
|
99
|
+
queryDict = {'query': {'pileupName': dset},
|
|
100
|
+
'filters': ['pileupName', 'customName', 'containerFraction', 'currentRSEs']}
|
|
101
|
+
doc = getPileupDocs(msPileupUrl, queryDict, method='POST')[0]
|
|
102
|
+
msg = f'Pileup dataset {doc["pileupName"]} with:\n\tcustom name: {doc["customName"]},'
|
|
103
|
+
msg += f'\n\tcurrent RSEs: {doc["currentRSEs"]}\n\tand container fraction: {doc["containerFraction"]}'
|
|
104
|
+
logging.info(msg)
|
|
105
|
+
except Exception as ex:
|
|
106
|
+
logging.error(f'Error querying MSPileup for dataset {dset}. Details: {str(ex)}')
|
|
107
|
+
raise ex
|
|
108
|
+
|
|
109
|
+
# custom dataset name means there was a container fraction change, use different scope
|
|
110
|
+
puScope = 'cms'
|
|
111
|
+
if doc["customName"]:
|
|
112
|
+
dset = doc["customName"]
|
|
113
|
+
puScope = 'group.wmcore'
|
|
114
|
+
|
|
115
|
+
blockReplicas = self.rucio.getBlocksInContainer(container=dset, scope=puScope)
|
|
116
|
+
logging.info(f"Found {len(blockReplicas)} blocks in container {dset} for scope {puScope}")
|
|
117
|
+
|
|
118
|
+
# Finally, update blocks present in Rucio with the MSPileup currentRSEs.
|
|
119
|
+
# Blocks not present in Rucio - hence only in DBS - are meant to be removed.
|
|
120
|
+
for blockName in list(blockDict):
|
|
121
|
+
if blockName not in blockReplicas:
|
|
122
|
+
logging.warning(f"Block {blockName} present in DBS but not in Rucio. Removing it.")
|
|
123
|
+
blockDict.pop(blockName)
|
|
124
|
+
else:
|
|
125
|
+
blockDict[blockName]['PhEDExNodeNames'] = doc["currentRSEs"]
|
|
126
|
+
logging.info(f"Final pileup dataset {dset} has a total of {len(blockDict)} blocks.")
|
|
127
|
+
|
|
128
|
+
def _getCacheFilePath(self, stepHelper):
|
|
129
|
+
|
|
130
|
+
fileName = ""
|
|
131
|
+
for pileupType in stepHelper.data.pileup.listSections_():
|
|
132
|
+
datasets = getattr(getattr(stepHelper.data.pileup, pileupType), "dataset")
|
|
133
|
+
fileName += "_".join(datasets)
|
|
134
|
+
# TODO cache is not very effective if the dataset combination is different between workflow
|
|
135
|
+
cacheHash = hashlib.sha1(encodeUnicodeToBytes(fileName)).hexdigest()
|
|
136
|
+
cacheFile = "%s/pileupconf-%s.json" % (self.cacheDirectory(), cacheHash)
|
|
137
|
+
return cacheFile
|
|
138
|
+
|
|
139
|
+
def _getStepFilePath(self, stepHelper):
|
|
140
|
+
stepPath = "%s/%s" % (self.workingDirectory(), stepHelper.name())
|
|
141
|
+
fileName = "%s/%s" % (stepPath, "pileupconf.json")
|
|
142
|
+
|
|
143
|
+
return fileName
|
|
144
|
+
|
|
145
|
+
def _writeFile(self, filePath, jsonPU):
|
|
146
|
+
|
|
147
|
+
directory = filePath.rsplit('/', 1)[0]
|
|
148
|
+
|
|
149
|
+
if not os.path.exists(directory):
|
|
150
|
+
os.mkdir(directory)
|
|
151
|
+
try:
|
|
152
|
+
with open(filePath, 'w') as f:
|
|
153
|
+
f.write(jsonPU)
|
|
154
|
+
except IOError:
|
|
155
|
+
m = "Could not save pileup JSON configuration file: '%s'" % filePath
|
|
156
|
+
raise RuntimeError(m)
|
|
157
|
+
|
|
158
|
+
def _copyFile(self, src, dest):
|
|
159
|
+
|
|
160
|
+
directory = dest.rsplit('/', 1)[0]
|
|
161
|
+
|
|
162
|
+
if not os.path.exists(directory):
|
|
163
|
+
os.mkdir(directory)
|
|
164
|
+
shutil.copyfile(src, dest)
|
|
165
|
+
|
|
166
|
+
def _isCacheExpired(self, cacheFilePath, delta=24):
|
|
167
|
+
"""Is the cache expired? At delta hours (default 24) in the future.
|
|
168
|
+
"""
|
|
169
|
+
# cache can either be a file name or an already opened file object
|
|
170
|
+
|
|
171
|
+
if not os.path.exists(cacheFilePath):
|
|
172
|
+
return True
|
|
173
|
+
|
|
174
|
+
delta = datetime.timedelta(hours=delta)
|
|
175
|
+
t = datetime.datetime.now() - delta
|
|
176
|
+
# cache file mtime has been set to cache expiry time
|
|
177
|
+
if os.path.getmtime(cacheFilePath) < time.mktime(t.timetuple()):
|
|
178
|
+
return True
|
|
179
|
+
|
|
180
|
+
return False
|
|
181
|
+
|
|
182
|
+
def _isCacheValid(self, stepHelper):
|
|
183
|
+
"""
|
|
184
|
+
Check whether cache is exits
|
|
185
|
+
TODO: if the cacheDirectory is not inside the Sandbox it should not autormatically deleted.
|
|
186
|
+
We can add cache refresh policy here
|
|
187
|
+
"""
|
|
188
|
+
cacheFile = self._getCacheFilePath(stepHelper)
|
|
189
|
+
|
|
190
|
+
if not self._isCacheExpired(cacheFile, delta=0.5) and os.path.getsize(cacheFile) > 0:
|
|
191
|
+
# if file already exist don't make a new dbs call and overwrite the file.
|
|
192
|
+
# just return
|
|
193
|
+
fileName = self._getStepFilePath(stepHelper)
|
|
194
|
+
if not os.path.isfile(fileName) or os.path.getsize(fileName) != os.path.getsize(cacheFile):
|
|
195
|
+
self._copyFile(cacheFile, fileName)
|
|
196
|
+
return True
|
|
197
|
+
else:
|
|
198
|
+
return False
|
|
199
|
+
|
|
200
|
+
def _saveFile(self, stepHelper, jsonPU):
|
|
201
|
+
|
|
202
|
+
cacheFile = self._getCacheFilePath(stepHelper)
|
|
203
|
+
self._writeFile(cacheFile, jsonPU)
|
|
204
|
+
fileName = self._getStepFilePath(stepHelper)
|
|
205
|
+
self._copyFile(cacheFile, fileName)
|
|
206
|
+
|
|
207
|
+
def createPileupConfigFile(self, helper):
|
|
208
|
+
"""
|
|
209
|
+
Stores pileup JSON configuration file in the working
|
|
210
|
+
directory / sandbox.
|
|
211
|
+
:param helper: WMStepHelper instance
|
|
212
|
+
:return: None
|
|
213
|
+
"""
|
|
214
|
+
if self._isCacheValid(helper):
|
|
215
|
+
# if file already exist don't make a new dbs call and overwrite the file.
|
|
216
|
+
# just return
|
|
217
|
+
return
|
|
218
|
+
|
|
219
|
+
encoder = JSONEncoder()
|
|
220
|
+
# this should have been set in CMSSWStepHelper along with
|
|
221
|
+
# the pileup configuration
|
|
222
|
+
url = helper.data.dbsUrl
|
|
223
|
+
dbsReader = DBSReader(url)
|
|
224
|
+
|
|
225
|
+
configDict = self._queryDbsAndGetPileupConfig(helper, dbsReader)
|
|
226
|
+
|
|
227
|
+
# create JSON and save into a file
|
|
228
|
+
jsonPU = encoder.encode(configDict)
|
|
229
|
+
self._saveFile(helper, jsonPU)
|
|
230
|
+
|
|
231
|
+
def __call__(self, wmTask):
|
|
232
|
+
"""
|
|
233
|
+
Method is called when WorkQueue creates the sandbox for a job.
|
|
234
|
+
Need to look at the pileup configuration in the spec and query dbs to
|
|
235
|
+
determine the lfns for the files in the datasets and what sites they're
|
|
236
|
+
located at (WQ creates the job sandbox).
|
|
237
|
+
|
|
238
|
+
wmTask is instance of WMTask.WMTaskHelper
|
|
239
|
+
|
|
240
|
+
"""
|
|
241
|
+
for step in wmTask.steps().nodeIterator():
|
|
242
|
+
helper = WMStep.WMStepHelper(step)
|
|
243
|
+
# returns e.g. instance of CMSSWHelper
|
|
244
|
+
# doesn't seem to be necessary ... strangely (some inheritance involved?)
|
|
245
|
+
# typeHelper = helper.getTypeHelper()
|
|
246
|
+
if hasattr(helper.data, "pileup"):
|
|
247
|
+
self.createPileupConfigFile(helper)
|