File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
src/DIRAC/DataManagementSystem/Agent/RequestOperations Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -55,14 +55,17 @@ def __call__(self):
55
55
# # loop over files
56
56
registerOperations = {}
57
57
successReplicas = 0
58
+
59
+ targetSE = self .operation .targetSEList [0 ]
60
+ replicaTuples = [(opFile .LFN , opFile .PFN , targetSE ) for opFile in waitingFiles ]
61
+
62
+ registerReplica = self .dm .registerReplica (replicaTuples , catalogs )
63
+
58
64
for opFile in waitingFiles :
59
65
# # get LFN
60
66
lfn = opFile .LFN
61
67
# # and others
62
- targetSE = self .operation .targetSEList [0 ]
63
- replicaTuple = (lfn , opFile .PFN , targetSE )
64
- # # call ReplicaManager
65
- registerReplica = self .dm .registerReplica (replicaTuple , catalogs )
68
+
66
69
# # check results
67
70
if not registerReplica ["OK" ] or lfn in registerReplica ["Value" ]["Failed" ]:
68
71
# There have been some errors
You can’t perform that action at this time.
0 commit comments