Skip to content

Commit

Permalink
Merge pull request #401 from PanDAWMS/no-subdir
Browse files Browse the repository at this point in the history
Simplification in offline script using rucio download --no-subdir option
  • Loading branch information
fbarreir authored Aug 29, 2024
2 parents 15ba8d8 + 2d23ce1 commit 925876e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pandaserver/taskbuffer/TaskBuffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 925876e

Please sign in to comment.