Skip to content

Commit

Permalink
cleanup pending notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenneth Kehl committed Jan 8, 2025
1 parent 0d1a989 commit a2fc970
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions app/dao/notifications_dao.py
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,9 @@ def dao_close_out_delivery_receipts():
.values(status=NotificationStatus.FAILED, provider_response="Technical Failure")
)
result = db.session.execute(stmt)
current_app.logger.info(
f"Marked {result.rowcount} notifications as technical failures"
)

db.session.commit()
if result:
current_app.logger.info(
f"Marked {result.rowcount} notifications as technical failures"
)

0 comments on commit a2fc970

Please sign in to comment.