Skip to content

Commit

Permalink
feat (FTS): do not retry files if the failure is irrecoverable
Browse files Browse the repository at this point in the history
  • Loading branch information
chaen committed Sep 17, 2024
1 parent 49cd8ae commit d423e7c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/DIRAC/DataManagementSystem/Client/FTS3Job.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,11 @@ def monitor(self, context=None, ftsServer=None, ucert=None):
if file_state in FTS3File.FTS_FINAL_STATES:
filesStatus[file_id]["ftsGUID"] = None

# If the file is failed, check if it is recoverable
if file_state in FTS3File.FTS_FAILED_STATES:
if not fileDict.get("Recoverable", True):
filesStatus[file_id]["status"] = "Defunct"

# If the file is not in a final state, but the job is, we return an error
# FTS can have inconsistencies where the FTS Job is in a final state
# but not all the files.
Expand Down

0 comments on commit d423e7c

Please sign in to comment.