mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-21 16:01:15 -05:00
Simplify comment for DAO timeout function
This commit is contained in:
@@ -491,13 +491,7 @@ def dao_delete_notifications_by_id(notification_id):
|
|||||||
|
|
||||||
def dao_timeout_notifications(timeout_period_in_seconds):
|
def dao_timeout_notifications(timeout_period_in_seconds):
|
||||||
"""
|
"""
|
||||||
Timeout SMS and email notifications by the following rules:
|
Set email and SMS notifications (only) to "temporary-failure" status.
|
||||||
|
|
||||||
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
|
|
||||||
"""
|
"""
|
||||||
timeout_start = datetime.utcnow() - timedelta(seconds=timeout_period_in_seconds)
|
timeout_start = datetime.utcnow() - timedelta(seconds=timeout_period_in_seconds)
|
||||||
updated_at = datetime.utcnow()
|
updated_at = datetime.utcnow()
|
||||||
|
|||||||
Reference in New Issue
Block a user