I am using Django-Mailer-2 to send email from a Django App. If I have the command python manage.py send_mail
run every 5 minutes via the crontab
, it will send any emails that have been added to the queue.
If I add 1,000 emails to the queue all at once and the command python manage.py send_mail
is run every 5 minutes, will addition threads be started every 5 minutes to send the emails on the queue?
No, it uses a lock file and will quit if a previous
send_mail
is running.https://github.com/SmileyChris/django-mailer-2/blob/master/django_mailer/engine.py