From 3bcaf8330e142d4484831027eed455facd48d8ea Mon Sep 17 00:00:00 2001 From: Ben Thorner Date: Mon, 13 Dec 2021 16:39:55 +0000 Subject: [PATCH] Simplify comment for DAO timeout function --- app/dao/notifications_dao.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/app/dao/notifications_dao.py b/app/dao/notifications_dao.py index 2ad80a226..15daca241 100644 --- a/app/dao/notifications_dao.py +++ b/app/dao/notifications_dao.py @@ -491,13 +491,7 @@ def dao_delete_notifications_by_id(notification_id): def dao_timeout_notifications(timeout_period_in_seconds): """ - Timeout SMS and email notifications by the following rules: - - the notification was sent to the provider but there was not a delivery receipt - sending -> temporary-failure - pending -> temporary-failure - - Letter notifications are not timed out + Set email and SMS notifications (only) to "temporary-failure" status. """ timeout_start = datetime.utcnow() - timedelta(seconds=timeout_period_in_seconds) updated_at = datetime.utcnow()