2020-09-06 10:46:03 +02:00
|
|
|
# {{ ansible_managed }}
|
2020-08-05 23:19:30 +02:00
|
|
|
# Les cronjobs dont a besoin la Note Kfet
|
|
|
|
|
2021-04-08 17:31:01 +02:00
|
|
|
# Envoi des mails aux respos info
|
|
|
|
MAILTO=notekfet2020@lists.crans.org
|
|
|
|
|
2020-08-05 23:50:30 +02:00
|
|
|
# m h dom mon dow user command
|
2020-08-05 23:19:30 +02:00
|
|
|
# Envoyer les mails en attente
|
2021-04-27 09:52:34 +02:00
|
|
|
* * * * * root cd /var/www/note_kfet && env/bin/python manage.py send_mail -c 1 -v 0
|
|
|
|
* * * * * root cd /var/www/note_kfet && env/bin/python manage.py retry_deferred -c 1 -v 0
|
2021-04-14 15:05:13 +02:00
|
|
|
00 0 * * * root cd /var/www/note_kfet && env/bin/python manage.py purge_mail_log 7 -v 0
|
2024-09-05 19:48:54 +02:00
|
|
|
00 0 * * * root cd /var/www/note_kfet && env/bin/python manage.py purge_mail_log -r failure 30 -v 0
|
2020-08-06 09:27:33 +02:00
|
|
|
# Faire une sauvegarde de la base de données
|
|
|
|
00 2 * * * root cd /var/www/note_kfet && apps/scripts/shell/backup_db
|
2020-08-05 23:19:30 +02:00
|
|
|
# Vérifier la cohérence de la base et mailer en cas de problème
|
2021-04-27 09:52:34 +02:00
|
|
|
00 4 * * * root cd /var/www/note_kfet && env/bin/python manage.py check_consistency --sum-all --check-all -v 0
|
2020-08-05 23:19:30 +02:00
|
|
|
# Mettre à jour le wiki (modification sans (dé)validation, activités passées)
|
2021-04-14 15:05:13 +02:00
|
|
|
30 5 * * * root cd /var/www/note_kfet && env/bin/python manage.py refresh_activities --raw --human --comment refresh --wiki -v 0
|
2020-08-05 23:19:30 +02:00
|
|
|
# Spammer les gens en négatif
|
2021-04-27 09:52:34 +02:00
|
|
|
00 5 * * 2 root cd /var/www/note_kfet && env/bin/python manage.py send_mail_to_negative_balances --spam --negative-amount 1 -v 0
|
2020-08-05 23:19:30 +02:00
|
|
|
# Envoyer le rapport mensuel aux trésoriers et respos info
|
2023-04-06 09:04:27 +02:00
|
|
|
00 8 * * 5 root cd /var/www/note_kfet && env/bin/python manage.py send_mail_to_negative_balances --report --add-years 1 -v 0
|
2020-08-05 23:19:30 +02:00
|
|
|
# Envoyer les rapports aux gens
|
2021-04-14 15:05:13 +02:00
|
|
|
55 6 * * * root cd /var/www/note_kfet && env/bin/python manage.py send_reports -v 0
|
2020-09-05 14:28:05 +02:00
|
|
|
# Mettre à jour les boutons mis en avant
|
2021-04-14 15:05:13 +02:00
|
|
|
00 9 * * * root cd /var/www/note_kfet && env/bin/python manage.py refresh_highlighted_buttons -v 0
|
2020-09-21 11:03:07 +02:00
|
|
|
# Vider les tokens Oauth2
|
2021-04-14 15:05:13 +02:00
|
|
|
00 6 * * * root cd /var/www/note_kfet && env/bin/python manage.py cleartokens -v 0
|