Skip to content

Commit

Permalink
Merge pull request #795 from dynamic-entropy/loadtest-temprule
Browse files Browse the repository at this point in the history
catch temporary rule creation failed exception
  • Loading branch information
dynamic-entropy authored May 10, 2024
2 parents c043e76 + 27e2491 commit 55e5288
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docker/rucio_client/loadtest/loadtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,12 @@ def update_loadtest(
}
):
client.update_replication_rule(other_rule["id"], {"lifetime": 0})

except ReplicationRuleCreationTemporaryFailed as e:
logger.error(
f"Previous replica has not be deleted from the destination rse {dest_rse} for files in dataset {dataset}", e
)

return False
if rule["state"] == "SUSPENDED":
logger.debug(
Expand Down

0 comments on commit 55e5288

Please sign in to comment.