From f9aa0b8d6772828afc4fbf13bf55a6e10595854d Mon Sep 17 00:00:00 2001 From: Alan Malta Rodrigues Date: Wed, 21 Aug 2024 16:20:54 -0400 Subject: [PATCH] Dump Vienna list of deletable directories --- src/python/WMCore/MicroService/MSUnmerged/MSUnmerged.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/python/WMCore/MicroService/MSUnmerged/MSUnmerged.py b/src/python/WMCore/MicroService/MSUnmerged/MSUnmerged.py index 4f058d38e1..4edc9e664e 100644 --- a/src/python/WMCore/MicroService/MSUnmerged/MSUnmerged.py +++ b/src/python/WMCore/MicroService/MSUnmerged/MSUnmerged.py @@ -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) @@ -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