1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-22 19:18:26 +02:00

Use a cron to send mails

This commit is contained in:
Yohann D'ANELLO
2020-09-19 21:31:28 +02:00
parent d414f1a920
commit f6c209df03
2 changed files with 7 additions and 0 deletions

5
tfjm.cron Normal file
View File

@ -0,0 +1,5 @@
# m h dom mon dow user command
# Envoyer les mails en attente
* * * * * root cd /code && python manage.py send_mail -c 1
* * * * * root cd /code && python manage.py retry_deferred -c 1
00 0 * * * root cd /code && python manage.py purge_mail_log 7 -c 1