Skip to content

Commit

Permalink
Merge pull request #12116 from amaltaro/235_cmsweb_bundle1
Browse files Browse the repository at this point in the history
Bundle of patches for WM central services
  • Loading branch information
amaltaro authored Sep 26, 2024
2 parents 3e29a7d + ebfc1e9 commit 1da2f62
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
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
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ def getDatasetLocationsFromMSPileup(self, datasetsWithDbsURL):
self.logger.debug(f'Retrieved MSPileup document: {doc}')
if len(currentRSEs) == 0:
self.logger.warning(f'No RSE has a copy of the desired pileup dataset. Expected RSEs: {doc["expectedRSEs"]}')
result[dataset] = doc['currentRSEs']
result[dataset] = currentRSEs
except IndexError:
self.logger.warning('Did not find any pileup document for query: %s', queryDict['query'])
result[dataset] = []
Expand Down

0 comments on commit 1da2f62

Please sign in to comment.