From 863a99752e6928f9825bae275f69bf8696b836cb Mon Sep 17 00:00:00 2001 From: Luke Plant Date: Wed, 27 Sep 2023 12:16:03 +0100 Subject: [PATCH] Code comment --- src/mailer/postgres.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mailer/postgres.py b/src/mailer/postgres.py index af1ce24..0af2875 100644 --- a/src/mailer/postgres.py +++ b/src/mailer/postgres.py @@ -23,7 +23,7 @@ def postgres_send_loop(): """ - Loop indefinitely, checking queue using NOTIFY/LISTEN and running send_mail(), + Loop indefinitely, checking queue using NOTIFY/LISTEN and running send_all(), and additional running every MAILER_EMPTY_QUEUE_SLEEP seconds. """ # See https://www.psycopg.org/docs/advanced.html#asynchronous-notifications @@ -139,7 +139,7 @@ def worker(): @dataclass class Scheduled: - now: datetime + now: datetime # this is used for debugging only, we just need some object on the queue def beat():