]> git.parisson.com Git - telecaster-server.git/commitdiff
update cron rules
authorGuillaume Pellerin <yomguy@parisson.com>
Thu, 5 Jan 2023 07:21:30 +0000 (08:21 +0100)
committerGuillaume Pellerin <yomguy@parisson.com>
Thu, 5 Jan 2023 07:21:30 +0000 (08:21 +0100)
src/etc/cron.d/telecaster

index e321402ae6f94107adcce49ee6cbf4a4a8cd8c82..300e4ecb2a092eab4c43be9ca9d6394af16da4cd 100644 (file)
@@ -1,16 +1,11 @@
-# Cleanup
-0 */3 * * * telecaster python /home/telecaster/apps/tools/cleanup/rm_date_days.py 10 /home/telecaster/trash/ >> /var/log/telecaster/cleanup.log
-30 */3 * * * telecaster python /home/telecaster/apps/tools/cleanup/rm_date_days.py 10 /home/telecaster/archives/ >> /var/log/telecaster/cleanup.log
-
-# Local import
-0,30 * * * * telecaster /usr/local/lib/telecaster/instance/manage.py teleforma-import-conferences Pre-Barreau /var/log/telecaster/import.log
-
-# Stop
-0 0 * * * root /etc/init.d/telecaster stop
-
-# Start
+30 0 * * * root /etc/init.d/telecaster stop
 0 8 * * * root /etc/init.d/telecaster start
 
-# Sync
-15 12,15 * * * telecaster /usr/local/lib/telecaster/instance/manage.py telecaster-rsync-archives
-0  21 * * * telecaster /usr/local/lib/telecaster/instance/manage.py telecaster-rsync-archives
+30 7 * * * root python /srv/telecaster/scripts/cleanup/rm_date_days.py 5 /home/telecaster/trash/ >> /var/log/telecaster/cleanup.log
+45 7 * * * root python /srv/telecaster/scripts/cleanup/rm_date_days.py 6  /home/telecaster/archives/ >> /var/log/telecaster/cleanup.log
+
+0 */3 * * * telecaster /srv/telecaster/instance/env/bin/python /srv/telecaster/instance/manage.py teleforma-import-conferences Pre-Barreau /var/log/telecaster/import.log
+30 * * * * telecaster /srv/telecaster/instance/env/bin/python /srv/telecaster/instance/manage.py telecaster-rsync-archives
+10 22 * * * telecaster /srv/telecaster/instance/env/bin/python  /srv/telecaster/instance/manage.py teleforma-pull-professors
+0 1 * * * telecaster  /srv/telecaster/instance/env/bin/python /srv/telecaster/instance/manage.py teleforma-pull-courses Pre-Barreau
+10 1 * * * telecaster  /srv/telecaster/instance/env/bin/python /srv/telecaster/instance/manage.py teleforma-export-stream-m-slugs source2parisson /etc/stream-m/server.conf