cleanup pending notifications

This commit is contained in:
Kenneth Kehl
2025-01-08 08:58:24 -08:00
parent 0d1a98914a
commit a2fc97000b

View File

@@ -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"
)