-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcron
8 lines (7 loc) · 905 Bytes
/
cron
1
2
3
4
5
6
7
15 0 * * * root eval $(grep -v '^#' /etc/.cronenv | xargs -d "\n" -I {} echo export \"{}\" ) && cd /app && python manage.py cron_tasks >> logs/run_cron_tasks.log 2>&1
# First Sunday of every Month
0 1 1-7 * */7 root eval $(grep -v '^#' /etc/.cronenv | xargs -d "\n" -I {} echo export \"{}\" ) && cd /app && python manage.py update_cache >> logs/run_update_cache.log 2>&1
11 9 * * 0 root eval $(grep -v '^#' /etc/.cronenv | xargs -d "\n" -I {} echo export \"{}\" ) && cd /app && python manage.py appmonitor_check >> logs/appmonitor_check.log 2>&1
# Every 15 mins
*/5 * * * * root eval $(grep -v '^#' /etc/.cronenv | xargs -d "\n" -I {} echo export \"{}\" ) && cd /app && run-one python manage.py task_runner >> logs/task_runner.log 2>&1
*/5 * * * * root eval $(grep -v '^#' /etc/.cronenv | xargs -d "\n" -I {} echo export \"{}\" ) && cd /app && run-one python manage.py runcrons >> logs/runcrons.log 2>&1