Skip to content

Commit

Permalink
Raise an error in copy_by_key_with_retry after exceeding retry limit
Browse files Browse the repository at this point in the history
  • Loading branch information
augusto-herrmann committed Jul 17, 2024
1 parent 297052e commit 967e029
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fastetl/custom_functions/copy_db_extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ def copy_by_key_with_retry(
if succeeded:
logging.info("Término com sucesso!")
else:
logging.info("Término com erro após %d tentativas!", retries)
raise IOError(f"Término com erro após {retries} tentativas!")


def copy_by_limit_offset(
Expand Down

0 comments on commit 967e029

Please sign in to comment.