From c6e2a24c950bd416f13a8ae2f91481c773494e8b 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 c372ab38fb..d8752557aa 100644 --- a/src/python/WMCore/MicroService/MSUnmerged/MSUnmerged.py +++ b/src/python/WMCore/MicroService/MSUnmerged/MSUnmerged.py @@ -318,6 +318,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) @@ -856,4 +859,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