2020-09-06 08:46:03 +00:00
|
|
|
# {{ ansible_managed }}
|
2020-08-05 21:19:30 +00:00
|
|
|
# Les cronjobs dont a besoin la Note Kfet
|
|
|
|
|
2021-04-08 15:31:01 +00:00
|
|
|
# Envoi des mails aux respos info
|
|
|
|
MAILTO=notekfet2020@lists.crans.org
|
|
|
|
|
2020-08-05 21:50:30 +00:00
|
|
|
# m h dom mon dow user command
|
2020-08-05 21:19:30 +00:00
|
|
|
# Envoyer les mails en attente
|
2021-04-27 07:52:34 +00: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 13:05:13 +00:00
|
|
|
00 0 * * * root cd /var/www/note_kfet && env/bin/python manage.py purge_mail_log 7 -v 0
|
2024-09-05 17:48:54 +00: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 07:27:33 +00: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 21:19:30 +00:00
|
|
|
# Vérifier la cohérence de la base et mailer en cas de problème
|
2021-04-27 07:52:34 +00: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 21:19:30 +00:00
|
|
|
# Mettre à jour le wiki (modification sans (dé)validation, activités passées)
|
2021-04-14 13:05:13 +00: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 21:19:30 +00:00
|
|
|
# Spammer les gens en négatif
|
2021-04-27 07:52:34 +00: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 21:19:30 +00:00
|
|
|
# Envoyer le rapport mensuel aux trésoriers et respos info
|
2023-04-06 07:04:27 +00: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
|
2023-10-05 14:54:45 +00:00
|
|
|
# Envoyer le recap de tresorerie
|
|
|
|
00 8 * * 5 root cd /var/www/note_kfet && env/bin/python manage.py send_summary_notes_report --negative-amount 2000
|
2020-08-05 21:19:30 +00:00
|
|
|
# Envoyer les rapports aux gens
|
2021-04-14 13:05:13 +00:00
|
|
|
55 6 * * * root cd /var/www/note_kfet && env/bin/python manage.py send_reports -v 0
|
2020-09-05 12:28:05 +00:00
|
|
|
# Mettre à jour les boutons mis en avant
|
2021-04-14 13:05:13 +00:00
|
|
|
00 9 * * * root cd /var/www/note_kfet && env/bin/python manage.py refresh_highlighted_buttons -v 0
|
2020-09-21 09:03:07 +00:00
|
|
|
# Vider les tokens Oauth2
|
2021-04-14 13:05:13 +00:00
|
|
|
00 6 * * * root cd /var/www/note_kfet && env/bin/python manage.py cleartokens -v 0
|