From b5ccf5b800dab350d91018f1a57775ed5f7dfa11 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Wed, 14 Apr 2021 15:05:13 +0200 Subject: [PATCH 1/3] Run cron without verbosity Signed-off-by: Yohann D'ANELLO --- note.cron | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/note.cron b/note.cron index fe5df781..b0309341 100644 --- a/note.cron +++ b/note.cron @@ -6,22 +6,22 @@ MAILTO=notekfet2020@lists.crans.org # m h dom mon dow user command # Envoyer les mails en attente - * * * * * root cd /var/www/note_kfet && env/bin/python manage.py send_mail -c 1 - * * * * * root cd /var/www/note_kfet && env/bin/python manage.py retry_deferred -c 1 - 00 0 * * * root cd /var/www/note_kfet && env/bin/python manage.py purge_mail_log 7 -c 1 + * * * * * root cd /var/www/note_kfet && env/bin/python manage.py send_mail -v 0 + * * * * * root cd /var/www/note_kfet && env/bin/python manage.py retry_deferred -v 0 + 00 0 * * * root cd /var/www/note_kfet && env/bin/python manage.py purge_mail_log 7 -v 0 # Faire une sauvegarde de la base de données 00 2 * * * root cd /var/www/note_kfet && apps/scripts/shell/backup_db # Vérifier la cohérence de la base et mailer en cas de problème - 00 4 * * * root cd /var/www/note_kfet && env/bin/python manage.py check_consistency --sum-all --check-all --mail + 00 4 * * * root cd /var/www/note_kfet && env/bin/python manage.py check_consistency --sum-all --check-all --mail -v 0 # Mettre à jour le wiki (modification sans (dé)validation, activités passées) - 30 5 * * * root cd /var/www/note_kfet && env/bin/python manage.py refresh_activities --raw --human --comment refresh --wiki + 30 5 * * * root cd /var/www/note_kfet && env/bin/python manage.py refresh_activities --raw --human --comment refresh --wiki -v 0 # Spammer les gens en négatif - 00 5 * * 2 root cd /var/www/note_kfet && env/bin/python manage.py send_mail_to_negative_balances --spam + 00 5 * * 2 root cd /var/www/note_kfet && env/bin/python manage.py send_mail_to_negative_balances --spam -v 0 # Envoyer le rapport mensuel aux trésoriers et respos info - 00 8 6 * * root cd /var/www/note_kfet && env/bin/python manage.py send_mail_to_negative_balances --report + 00 8 6 * * root cd /var/www/note_kfet && env/bin/python manage.py send_mail_to_negative_balances --report -v 0 # Envoyer les rapports aux gens - 55 6 * * * root cd /var/www/note_kfet && env/bin/python manage.py send_reports + 55 6 * * * root cd /var/www/note_kfet && env/bin/python manage.py send_reports -v 0 # Mettre à jour les boutons mis en avant - 00 9 * * * root cd /var/www/note_kfet && env/bin/python manage.py refresh_highlighted_buttons + 00 9 * * * root cd /var/www/note_kfet && env/bin/python manage.py refresh_highlighted_buttons -v 0 # Vider les tokens Oauth2 - 00 6 * * * root cd /var/www/note_kfet && env/bin/python manage.py cleartokens + 00 6 * * * root cd /var/www/note_kfet && env/bin/python manage.py cleartokens -v 0 From 9308878054bd13b138d0ab70832b8773037f1d3f Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Wed, 14 Apr 2021 15:18:49 +0200 Subject: [PATCH 2/3] Adapt verbosity of some scripts Signed-off-by: Yohann D'ANELLO --- apps/scripts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/scripts b/apps/scripts index 13322189..cf8b05d2 160000 --- a/apps/scripts +++ b/apps/scripts @@ -1 +1 @@ -Subproject commit 13322189dcc4efbc56fa53aff094fae61d4011dc +Subproject commit cf8b05d20a431fca634aff22f82777317c22c082 From 7a715df121f9f775d5e322f8a36c7a986513adf2 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Wed, 14 Apr 2021 15:48:15 +0200 Subject: [PATCH 3/3] Treasurers asked to add the list of old members in the monthly reports Signed-off-by: Yohann D'ANELLO --- note.cron | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/note.cron b/note.cron index b0309341..d1814250 100644 --- a/note.cron +++ b/note.cron @@ -18,7 +18,7 @@ MAILTO=notekfet2020@lists.crans.org # Spammer les gens en négatif 00 5 * * 2 root cd /var/www/note_kfet && env/bin/python manage.py send_mail_to_negative_balances --spam -v 0 # Envoyer le rapport mensuel aux trésoriers et respos info - 00 8 6 * * root cd /var/www/note_kfet && env/bin/python manage.py send_mail_to_negative_balances --report -v 0 + 00 8 6 * * root cd /var/www/note_kfet && env/bin/python manage.py send_mail_to_negative_balances --report --add-years 1 -v 0 # Envoyer les rapports aux gens 55 6 * * * root cd /var/www/note_kfet && env/bin/python manage.py send_reports -v 0 # Mettre à jour les boutons mis en avant