Skip to content

Commit

Permalink
Merge pull request DIRACGrid#7720 from DIRACGridBot/cherry-pick-2-71d…
Browse files Browse the repository at this point in the history
…ef4ba8-integration

[sweep:integration] Remove dead code path in ReplicateAndRegister
  • Loading branch information
fstagni authored Jul 5, 2024
2 parents fb61e33 + 76aa85c commit dfcae1d
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -599,13 +599,6 @@ def dmTransfer(self, fromFTS=False):
# All source SEs are banned, delay execution by 1 hour
delayExecution = 60
continue
# # get the first one in the list
if sourceSE not in validReplicas:
if sourceSE:
err = "File not at specified source"
errors[err] += 1
self.log.warn(f"{lfn} is not at specified sourceSE {sourceSE}, changed to {validReplicas[0]}")
sourceSE = validReplicas[0]

# # loop over targetSE
catalogs = self.operation.Catalog
Expand All @@ -617,6 +610,7 @@ def dmTransfer(self, fromFTS=False):
if targetSE in validReplicas:
self.log.warn(f"Request to replicate {lfn} to an existing location: {targetSE}")
continue
sourceSE = self.operation.SourceSE if self.operation.SourceSE else None
res = self.dm.replicateAndRegister(lfn, targetSE, sourceSE=sourceSE, catalog=catalogs)
if res["OK"]:
if lfn in res["Value"]["Successful"]:
Expand Down

0 comments on commit dfcae1d

Please sign in to comment.