-
Notifications
You must be signed in to change notification settings - Fork 5
/
crontab
69 lines (67 loc) · 6.29 KB
/
crontab
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# Edit this file to introduce tasks to be run by cron.
#
# Each task to run has to be defined through a single line
# indicating with different fields when the task will be run
# and what command to run for the task
#
# To define the time you can provide concrete values for
# minute (m), hour (h), day of month (dom), month (mon),
# and day of week (dow) or use '*' in these fields (for 'any').#
# Notice that tasks will be started based on the cron's system
# daemon's notion of time and timezones.
#
# Output of the crontab jobs (including errors) is sent through
# email to the user the crontab file belongs to (unless redirected).
#
# For example, you can run a backup of all your user accounts
# at 5 a.m every week with:
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
#
# For more information see the manual pages of crontab(5) and cron(8)
#
# Wikimedia Tool Labs specific note:
# Please be aware that *only* jsub and jstart are acceptable
# commands to schedule via cron. Any command specified here will
# be modified to be invoked through jsub unless it is one of
# the two.
#
# Variables
PYTHON_BIN=/data/project/hashtags/virtualenvs/hashtags/bin/python
UPDATE_SCRIPT=/data/project/hashtags/hashtags/update.py
CRON_LOG_PATH=/data/project/hashtags/hashtags/logs/cron.txt
LOGPATH=/data/project/hashtags/hashtags/logs
# m h dom mon dow command
*/10 * * * * jsub -o $LOGPATH/en_out.txt -N enHashtagUpdate -e $LOGPATH/en_err.txt $PYTHON_BIN $UPDATE_SCRIPT --hours 1 --lang en >> $CRON_LOG_PATH
*/15 * * * * jsub -o $LOGPATH/ca_out.txt -N caHashtagUpdate -e $LOGPATH/ca_err.txt $PYTHON_BIN $UPDATE_SCRIPT --hours 1 --lang ca >> $CRON_LOG_PATH
*/16 * * * * jsub -o $LOGPATH/es_out.txt -N esHashtagUpdate -e $LOGPATH/es_err.txt $PYTHON_BIN $UPDATE_SCRIPT --hours 1 --lang es >> $CRON_LOG_PATH
*/15 * * * * jsub -o $LOGPATH/nl_out.txt -N nlHashtagUpdate -e $LOGPATH/nl_err.txt $PYTHON_BIN $UPDATE_SCRIPT --hours 1 --lang nl >> $CRON_LOG_PATH
*/16 * * * * jsub -o $LOGPATH/fr_out.txt -N frHashtagUpdate -e $LOGPATH/fr_err.txt $PYTHON_BIN $UPDATE_SCRIPT --hours 1 --lang fr >> $CRON_LOG_PATH
*/15 * * * * jsub -o $LOGPATH/fi_out.txt -N fiHashtagUpdate -e $LOGPATH/fi_err.txt $PYTHON_BIN $UPDATE_SCRIPT --hours 1 --lang fi >> $CRON_LOG_PATH
*/16 * * * * jsub -o $LOGPATH/it_out.txt -N itHashtagUpdate -e $LOGPATH/it_err.txt $PYTHON_BIN $UPDATE_SCRIPT --hours 1 --lang it >> $CRON_LOG_PATH
*/15 * * * * jsub -o $LOGPATH/zh_out.txt -N zhHashtagUpdate -e $LOGPATH/zh_err.txt $PYTHON_BIN $UPDATE_SCRIPT --hours 1 --lang zh >> $CRON_LOG_PATH
*/16 * * * * jsub -o $LOGPATH/no_out.txt -N noHashtagUpdate -e $LOGPATH/no_err.txt $PYTHON_BIN $UPDATE_SCRIPT --hours 1 --lang no >> $CRON_LOG_PATH
*/15 * * * * jsub -o $LOGPATH/ja_out.txt -N jaHashtagUpdate -e $LOGPATH/ja_err.txt $PYTHON_BIN $UPDATE_SCRIPT --hours 1 --lang ja >> $CRON_LOG_PATH
*/16 * * * * jsub -o $LOGPATH/ro_out.txt -N roHashtagUpdate -e $LOGPATH/ro_err.txt $PYTHON_BIN $UPDATE_SCRIPT --hours 1 --lang ro >> $CRON_LOG_PATH
*/15 * * * * jsub -o $LOGPATH/pl_out.txt -N plHashtagUpdate -e $LOGPATH/pl_err.txt $PYTHON_BIN $UPDATE_SCRIPT --hours 1 --lang pl >> $CRON_LOG_PATH
*/16 * * * * jsub -o $LOGPATH/pt_out.txt -N ptHashtagUpdate -e $LOGPATH/pt_err.txt $PYTHON_BIN $UPDATE_SCRIPT --hours 1 --lang pt >> $CRON_LOG_PATH
*/15 * * * * jsub -o $LOGPATH/ru_out.txt -N ruHashtagUpdate -e $LOGPATH/ru_err.txt $PYTHON_BIN $UPDATE_SCRIPT --hours 1 --lang ru >> $CRON_LOG_PATH
*/16 * * * * jsub -o $LOGPATH/de_out.txt -N deHashtagUpdate -e $LOGPATH/de_err.txt $PYTHON_BIN $UPDATE_SCRIPT --hours 1 --lang de >> $CRON_LOG_PATH
*/15 * * * * jsub -o $LOGPATH/sv_out.txt -N svHashtagUpdate -e $LOGPATH/sv_err.txt $PYTHON_BIN $UPDATE_SCRIPT --hours 1 --lang sv >> $CRON_LOG_PATH
*/16 * * * * jsub -o $LOGPATH/pa_out.txt -N paHashtagUpdate -e $LOGPATH/pa_err.txt $PYTHON_BIN $UPDATE_SCRIPT --hours 1 --lang pa >> $CRON_LOG_PATH
*/20 * * * * jsub -o $LOGPATH/el_out.txt -N elHashtagUpdate -e $LOGPATH/el_err.txt $PYTHON_BIN $UPDATE_SCRIPT --hours 1 --lang el >> $CRON_LOG_PATH
*/20 * * * * jsub -o $LOGPATH/fa_out.txt -N faHashtagUpdate -e $LOGPATH/fa_err.txt $PYTHON_BIN $UPDATE_SCRIPT --hours 1 --lang fa >> $CRON_LOG_PATH
*/21 * * * * jsub -o $LOGPATH/cs_out.txt -N csHashtagUpdate -e $LOGPATH/cs_err.txt $PYTHON_BIN $UPDATE_SCRIPT --hours 1 --lang cs >> $CRON_LOG_PATH
*/21 * * * * jsub -o $LOGPATH/no_out.txt -N nbHashtagUpdate -e $LOGPATH/no_err.txt $PYTHON_BIN $UPDATE_SCRIPT --hours 1 --lang no >> $CRON_LOG_PATH
*/21 * * * * jsub -o $LOGPATH/nn_out.txt -N nnHashtagUpdate -e $LOGPATH/nn_err.txt $PYTHON_BIN $UPDATE_SCRIPT --hours 1 --lang nn >> $CRON_LOG_PATH
*/21 * * * * jsub -o $LOGPATH/bg_out.txt -N bgHashtagUpdate -e $LOGPATH/bg_err.txt $PYTHON_BIN $UPDATE_SCRIPT --hours 1 --lang bg >> $CRON_LOG_PATH
*/21 * * * * jsub -o $LOGPATH/uk_out.txt -N ukHashtagUpdate -e $LOGPATH/uk_err.txt $PYTHON_BIN $UPDATE_SCRIPT --hours 1 --lang uk >> $CRON_LOG_PATH
*/19 * * * * jsub -o $LOGPATH/bn_out.txt -N bnHashtagUpdate -e $LOGPATH/bn_err.txt $PYTHON_BIN $UPDATE_SCRIPT --hours 1 --lang bn >> $CRON_LOG_PATH
*/19 * * * * jsub -o $LOGPATH/cy_out.txt -N cyHashtagUpdate -e $LOGPATH/cy_err.txt $PYTHON_BIN $UPDATE_SCRIPT --hours 1 --lang cy >> $CRON_LOG_PATH
*/19 * * * * jsub -o $LOGPATH/he_out.txt -N heHashtagUpdate -e $LOGPATH/he_err.txt $PYTHON_BIN $UPDATE_SCRIPT --hours 1 --lang he >> $CRON_LOG_PATH
*/19 * * * * jsub -o $LOGPATH/eu_out.txt -N euHashtagUpdate -e $LOGPATH/eu_err.txt $PYTHON_BIN $UPDATE_SCRIPT --hours 1 --lang eu >> $CRON_LOG_PATH
*/19 * * * * jsub -o $LOGPATH/lv_out.txt -N lvHashtagUpdate -e $LOGPATH/lv_err.txt $PYTHON_BIN $UPDATE_SCRIPT --hours 1 --lang lv >> $CRON_LOG_PATH
*/20 * * * * jsub -o $LOGPATH/or_out.txt -N orHashtagUpdate -e $LOGPATH/or_err.txt $PYTHON_BIN $UPDATE_SCRIPT --hours 1 --lang or >> $CRON_LOG_PATH
*/20 * * * * jsub -o $LOGPATH/gl_out.txt -N glHashtagUpdate -e $LOGPATH/gl_err.txt $PYTHON_BIN $UPDATE_SCRIPT --hours 1 --lang gl >> $CRON_LOG_PATH
*/20 * * * * jsub -o $LOGPATH/mr_out.txt -N mrHashtagUpdate -e $LOGPATH/mr_err.txt $PYTHON_BIN $UPDATE_SCRIPT --hours 1 --lang mr >> $CRON_LOG_PATH
*/20 * * * * jsub -o $LOGPATH/sr_out.txt -N srHashtagUpdate -e $LOGPATH/sr_err.txt $PYTHON_BIN $UPDATE_SCRIPT --hours 1 --lang sr >> $CRON_LOG_PATH
*/20 * * * * jsub -o $LOGPATH/br_out.txt -N brHashtagUpdate -e $LOGPATH/br_err.txt $PYTHON_BIN $UPDATE_SCRIPT --hours 1 --lang br >> $CRON_LOG_PATH