Skip to content

Commit

Permalink
Merge pull request #12095 from amaltaro/bundle-2344
Browse files Browse the repository at this point in the history
Bundle of patches for WMAgent 2.3.4.4
  • Loading branch information
amaltaro authored Sep 11, 2024
2 parents 34a4fde + 6f2665b commit 9c7d821
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
11 changes: 4 additions & 7 deletions src/python/WMComponent/JobAccountant/AccountantWorker.py
Original file line number Diff line number Diff line change
Expand Up @@ -495,19 +495,16 @@ def handleJob(self, jobID, fwkJobReport):
else:
fileList = fwkJobReport.getAllFilesFromStep(step='logArch1')

# Make sure every file has a valid location
# see https://github.com/dmwm/WMCore/issues/9353
newList = []
# Workaround: make sure every file has a valid location. See:
# https://github.com/dmwm/WMCore/issues/9353 and https://github.com/dmwm/WMCore/issues/12092
for fwjrFile in fileList:
# T0 has analysis file without any location, see:
# https://github.com/dmwm/WMCore/issues/9497
if not fwjrFile.get("locations") and fwjrFile.get("lfn", "").endswith(".root"):
logging.warning("The following file does not have any location: %s", fwjrFile)
jobSuccess = False
else:
newList.append(fwjrFile)
# save the new list free of ill files (without any location)
fileList = newList
fileList = fwkJobReport.getAllFilesFromStep(step='logArch1')
break

if jobSuccess:
logging.info("Job %d , handle successful job", jobID)
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 9c7d821

Please sign in to comment.