Skip to content

Commit 4db5684

Browse files
authored
Merge pull request #8410 from chaen/v9.0_feat_fixTokenMultiHop
fix (FTS3): only use tokens if all hop support tokens
2 parents 85651c4 + a1b3196 commit 4db5684

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/DIRAC/DataManagementSystem/Client/FTS3Job.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,15 @@ def _constructTransferJob(self, pinTime, allLFNs, target_spacetoken, protocols=N
411411
log.debug(f"Multihop job has {len(allLFNs)} files while only 1 allowed")
412412
return S_ERROR(errno.E2BIG, "Trying multihop job with more than one file !")
413413
allHops = [(self.sourceSE, self.multiHopSE), (self.multiHopSE, self.targetSE)]
414+
if tokensEnabled:
415+
tokensEnabled = all(
416+
[
417+
self.__seTokenSupport(StorageElement(seName))
418+
for seName in (self.sourceSE, self.multiHopSE, self.targetSE)
419+
]
420+
)
421+
if not tokensEnabled:
422+
log.warn("Not using token because not all hop supports it")
414423
isMultiHop = True
415424
else:
416425
allHops = [(self.sourceSE, self.targetSE)]

0 commit comments

Comments
 (0)