Skip to content

Commit

Permalink
Merge pull request #12090 from khurtado/msoutput1
Browse files Browse the repository at this point in the history
MSOutput: stop output placement for relval workflows by default
  • Loading branch information
amaltaro authored Sep 6, 2024
2 parents 2131894 + 8b3edf8 commit a26675e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/python/WMCore/MicroService/MSOutput/MSOutput.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,10 @@ def __init__(self, msConfig, mode, logger=None):
self.mode = mode
self.msConfig.setdefault("limitRequestsPerCycle", 500)
self.msConfig.setdefault("enableDataPlacement", False)
# Enable relval workflows to go to tape
self.msConfig.setdefault("enableRelValCustodial", False)
# Enable relval workflows to go to disk
self.msConfig.setdefault("enableRelValDisk", False)
self.msConfig.setdefault("excludeDataTier", [])
self.msConfig.setdefault("rucioAccount", 'wmcore_transferor')
self.msConfig.setdefault("rucioRSEAttribute", 'dm_weight')
Expand Down Expand Up @@ -737,8 +740,10 @@ def canDatasetGoToDisk(self, dataItem, isRelVal=False):
:return: True if the dataset is allowed to pass, False otherwise
"""
# Bypass every configuration for RelVals, keep everything on disk
# unless the disk option for this workflow is not enabled.
if isRelVal:
return True
return self.msConfig['enableRelValDisk']

dataTier = dataItem['Dataset'].split('/')[-1]
if dataTier in self.msConfig['excludeDataTier']:
self.logger.warning("Skipping dataset: %s because it's excluded in the MS configuration",
Expand Down

0 comments on commit a26675e

Please sign in to comment.