From 2d23ce140f3ddff442d6e17fc66c249af2333201 Mon Sep 17 00:00:00 2001 From: Fernando Harald Barreiro Megino Date: Thu, 29 Aug 2024 14:21:38 +0200 Subject: [PATCH] Simplification in offline script using rucio download --no-subdir option --- pandaserver/taskbuffer/TaskBuffer.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pandaserver/taskbuffer/TaskBuffer.py b/pandaserver/taskbuffer/TaskBuffer.py index 30083675f..9e4b75104 100755 --- a/pandaserver/taskbuffer/TaskBuffer.py +++ b/pandaserver/taskbuffer/TaskBuffer.py @@ -1326,11 +1326,7 @@ def getScriptOfflineRunning(self, pandaID, days=None): for tmpDS in dsFileMap: tmpFileList = dsFileMap[tmpDS] for tmpLFN in tmpFileList: - scrStr += "rucio download " - scrStr += f"{tmpLFN}\n" - # ln - tmpScope, tmpBareLFN = tmpLFN.split(":") - scrStr += f"ln -fs {tmpScope}/{tmpBareLFN} ./{tmpBareLFN}\n" + scrStr += f"rucio download {tmpLFN} --no-subdir\n" if isUser: scrStr += "\n#get trf\n" scrStr += f"wget {tmpTrfs[0]}\n"