Skip to content

Commit

Permalink
Merge pull request #10905 from germanfgv/logCollectOVerrides
Browse files Browse the repository at this point in the history
Use siteLocalConfig in logCollect jobs to specify output site
  • Loading branch information
todor-ivanov authored Dec 2, 2021
2 parents 83e6cf2 + a1469fb commit ba8e8c3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/python/WMCore/WMSpec/Steps/Executors/LogCollect.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
from WMCore.WMRuntime.Tools.Scram import Scram, getSingleScramArch, isCMSSWSupported
from WMCore.WMSpec.Steps.Executor import Executor
from WMCore.WMSpec.Steps.WMExecutionFailure import WMExecutionFailure
from WMCore.Storage.SiteLocalConfig import loadSiteLocalConfig


class LogCollect(Executor):
Expand Down Expand Up @@ -65,6 +66,9 @@ def execute(self, emulator=None):
overrides = {}
if hasattr(self.step, 'override'):
overrides = self.step.override.dictionary_()
if overrides.get('logRedirectSiteLocalConfig', None):
siteCfg = loadSiteLocalConfig()
overrides.update(siteCfg.localStageOut)

# Set wait to over an hour
waitTime = overrides.get('waitTime', 3600 + (self.step.retryDelay * self.step.retryCount))
Expand Down

0 comments on commit ba8e8c3

Please sign in to comment.