add retry with backoff

This commit is contained in:
Kenneth Kehl
2024-08-13 14:51:51 -07:00
parent fd0f8bc321
commit b9eec69423
4 changed files with 43 additions and 21 deletions

View File

@@ -511,11 +511,6 @@ def get_all_notifications_for_service(service_id):
)
except ClientError as ex:
if ex.response["Error"]["Code"] == "NoSuchKey":
s = notification.service_id
j = notification.job_id
current_app.logger.warning(
f"No personalisation found for s3 file location service: service-{s}-notify/{j}.csv"
)
notification.personalisation = ""
else:
raise ex
@@ -531,11 +526,6 @@ def get_all_notifications_for_service(service_id):
notification.normalised_to = recipient
except ClientError as ex:
if ex.response["Error"]["Code"] == "NoSuchKey":
s = notification.service_id
j = notification.job_id
current_app.logger.warning(
f"No phone number found for s3 file location service: service-{s}-notify/{j}.csv"
)
notification.to = ""
notification.normalised_to = ""
else: