mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
send_email: Fix sleep logic.
This was broken in the refactor in 1e67e0f218
.
This commit is contained in:
committed by
Tim Abbott
parent
b9948994d7
commit
4ffda1be87
@@ -40,6 +40,7 @@ Usage: ./manage.py deliver_scheduled_emails
|
||||
scheduled_timestamp__lte=timezone_now()
|
||||
).select_for_update()
|
||||
if email_jobs_to_deliver:
|
||||
found_rows = True
|
||||
for job in email_jobs_to_deliver:
|
||||
try:
|
||||
deliver_scheduled_emails(job)
|
||||
|
Reference in New Issue
Block a user