Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Commit

Permalink
Ajout du script de lancement des tâches de notifications (#250)
Browse files Browse the repository at this point in the history
Très léger oubli de ma part, j'ai oublié de valider ce script.
Ça devrait fonctionner beaucoup mieux après.
  • Loading branch information
ikarius authored Mar 21, 2024
1 parent 321b19c commit f354a51
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tools/run-notification-tasks.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

## Seulement sur la production
if [ "$ENVIRONMENT" != "production" ];then
echo "L'envoi des notifications automatiques ne se fait qu'en production"
exit 0;
fi

echo "Activation des tâches de notification"
python /app/manage.py process_notification_tasks --wet-run

0 comments on commit f354a51

Please sign in to comment.