We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9be9e11 commit 8e01a7bCopy full SHA for 8e01a7b
src/mailer/engine.py
@@ -267,7 +267,7 @@ def send_loop():
267
"""
268
269
while True:
270
- while not Message.objects.all():
+ while not Message.objects.all().exists():
271
logger.debug("sleeping for %s seconds before checking queue again" % EMPTY_QUEUE_SLEEP)
272
time.sleep(EMPTY_QUEUE_SLEEP)
273
send_all()
0 commit comments