Update send_node_digest_notifications.py

This commit is contained in:
Groupr 2025-06-03 00:37:42 +00:00
parent a868d5668a
commit 33d0c14f6f

View file

@ -16,16 +16,13 @@ def main():
with bootstrap(args.config) as env:
request = env["request"]
with transaction.manager:
with request.tm:
try:
deliver_scheduled_notifications(request)
print("Committing transaction.")
# transaction.commit()
print("Committed transaction.")
print("Notifications processed successfully.")
raise SystemExit(0)
except Exception as e:
print("Aborting transaction.")
transaction.abort()
print("Error processing notifications:", str(e))
raise SystemExit(1)
if __name__ == "__main__":