mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-15 01:32:20 -05:00
remove debugging
This commit is contained in:
@@ -56,9 +56,6 @@ def check_sms_delivery_receipt(self, message_id, notification_id, sent_at):
|
|||||||
except NotificationTechnicalFailureException as ntfe:
|
except NotificationTechnicalFailureException as ntfe:
|
||||||
provider_response = "Unable to find carrier response -- still looking"
|
provider_response = "Unable to find carrier response -- still looking"
|
||||||
status = "pending"
|
status = "pending"
|
||||||
current_app.logger.info(
|
|
||||||
"UPDATING WITH TEMPORARY FAILURE AND GOING TO RETRY"
|
|
||||||
)
|
|
||||||
update_notification_status_by_id(
|
update_notification_status_by_id(
|
||||||
notification_id, status, provider_response=provider_response
|
notification_id, status, provider_response=provider_response
|
||||||
)
|
)
|
||||||
@@ -120,7 +117,6 @@ def deliver_sms(self, notification_id):
|
|||||||
queue=QueueNames.CHECK_SMS,
|
queue=QueueNames.CHECK_SMS,
|
||||||
)
|
)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
current_app.logger.info("TEMPORARY FAILURE!")
|
|
||||||
update_notification_status_by_id(
|
update_notification_status_by_id(
|
||||||
notification_id, NOTIFICATION_TEMPORARY_FAILURE
|
notification_id, NOTIFICATION_TEMPORARY_FAILURE
|
||||||
)
|
)
|
||||||
@@ -140,7 +136,6 @@ def deliver_sms(self, notification_id):
|
|||||||
else:
|
else:
|
||||||
self.retry(queue=QueueNames.RETRY)
|
self.retry(queue=QueueNames.RETRY)
|
||||||
except self.MaxRetriesExceededError:
|
except self.MaxRetriesExceededError:
|
||||||
current_app.logger.info("PERMANENT FAILURE!")
|
|
||||||
message = (
|
message = (
|
||||||
"RETRY FAILED: Max retries reached. The task send_sms_to_provider failed for notification {}. "
|
"RETRY FAILED: Max retries reached. The task send_sms_to_provider failed for notification {}. "
|
||||||
"Notification has been updated to technical-failure".format(
|
"Notification has been updated to technical-failure".format(
|
||||||
|
|||||||
Reference in New Issue
Block a user