Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/DIRAC/DataManagementSystem/Client/FTS3Job.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,15 @@ def _constructTransferJob(self, pinTime, allLFNs, target_spacetoken, protocols=N
log.debug(f"Multihop job has {len(allLFNs)} files while only 1 allowed")
return S_ERROR(errno.E2BIG, "Trying multihop job with more than one file !")
allHops = [(self.sourceSE, self.multiHopSE), (self.multiHopSE, self.targetSE)]
if tokensEnabled:
tokensEnabled = all(
[
self.__seTokenSupport(StorageElement(seName))
for seName in (self.sourceSE, self.multiHopSE, self.targetSE)
]
)
if not tokensEnabled:
log.warn("Not using token because not all hop supports it")
isMultiHop = True
else:
allHops = [(self.sourceSE, self.targetSE)]
Expand Down
Loading