Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider AAA flags when adding input data to WMBS #12212

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion src/python/WMCore/WorkQueue/WMBSHelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,16 @@ def addFiles(self, block):
self._addACDCFileToWMBSFile(acdcFile)
else:
self.isDBS = True
blockPNNs = block['PhEDExNodeNames']
# Location to be used in WMBS follows the order of: first use Rucio, otherwise use LQE
if block['PhEDExNodeNames']:
# See https://github.com/dmwm/WMCore/blob/d0b6d7d/src/python/WMCore/WorkQueue/WorkQueue.py#L415
logging.info("Using actual Rucio data locality for data: %s", self.block)
blockPNNs = block['PhEDExNodeNames']
else:
# See https://github.com/dmwm/WMCore/blob/d0b6d7d/src/python/WMCore/WorkQueue/WorkQueue.py#L454
# In other words, it could be that data is not available in this list and will be read through AAA
logging.info("Using workqueue element location (including AAA flags) for data: %s", self.block)
blockPNNs = self.commonLocation
logging.info('Adding files into WMBS for %s with PNNs: %s', self.wmSpec.name(), blockPNNs)
for dbsFile in self.validFiles(block['Files']):
self._addDBSFileToWMBSFile(dbsFile, blockPNNs)
Expand Down