Skip to content

Commit

Permalink
Dump Vienna list of deletable directories
Browse files Browse the repository at this point in the history
  • Loading branch information
amaltaro committed Aug 22, 2024
1 parent 4b73da9 commit f9aa0b8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/python/WMCore/MicroService/MSUnmerged/MSUnmerged.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,9 @@ def cleanRSE(self, rse):
rse['dirs']['deletedSuccess'] = set()
rse['dirs']['deletedFail'] = set()
self.logger.info("Start cleaning files for RSE: %s.", rse['name'])
import json
with open("/data/srv/current/vienna.json", "w") as jo:
json.dump(list(rse['dirs']['toDelete']), jo, indent=2, sort_keys=True)
if not rse['dirs']['toDelete']:
self.logger.info("There is nothing to delete for RSE: %s.", rse['name'])
rse['isClean'] = self._checkClean(rse)
Expand Down Expand Up @@ -855,4 +858,4 @@ def getRSEList(self):
msg = "Unknown exception while trying to fetch the initial list of RSEs to work on. Err: %s"
self.logger.exception(msg, str(ex))
rseList = []
return rseList
return ["T2_AT_Vienna"] # rseList

0 comments on commit f9aa0b8

Please sign in to comment.