-
Notifications
You must be signed in to change notification settings - Fork 6
/
crontab
28 lines (27 loc) · 1.6 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
# Bumble Bee
# This bot runs in parallel across multiple bot segments
# Batch 1
0,15,30,45 * * * * (cd ~/wikibots/WikiApiary/bumble-bee/; nice -n 10 ./bumble-bee.py -s 0)
1,16,31,46 * * * * (cd ~/wikibots/WikiApiary/bumble-bee/; nice -n 10 ./bumble-bee.py -s 1)
2,17,32,47 * * * * (cd ~/wikibots/WikiApiary/bumble-bee/; nice -n 10 ./bumble-bee.py -s 2)
# Batch
5,20,35,50 * * * * (cd ~/wikibots/WikiApiary/bumble-bee/; nice -n 10 ./bumble-bee.py -s 3)
6,21,36,51 * * * * (cd ~/wikibots/WikiApiary/bumble-bee/; nice -n 10 ./bumble-bee.py -s 4)
7,22,37,52 * * * * (cd ~/wikibots/WikiApiary/bumble-bee/; nice -n 10 ./bumble-bee.py -s 5)
# Batch 3
10,25,40,55 * * * * (cd ~/wikibots/WikiApiary/bumble-bee/; nice -n 10 ./bumble-bee.py -s 6)
11,26,41,56 * * * * (cd ~/wikibots/WikiApiary/bumble-bee/; nice -n 10 ./bumble-bee.py -s 7)
12,27,42,57 * * * * (cd ~/wikibots/WikiApiary/bumble-bee/; nice -n 10 ./bumble-bee.py -s 8)
# (alternative syntax)
#* * * * * wikibot (cd ~/WikiApiary/bumble-bee/; nice -n 19 ./bumble-bee.py -s `date '+\%M'`)
# Audit Bee
0 * * * * (cd ~/wikibots/WikiApiary/audit-bee/; nice -n 10 ./audit-bee.py)
# Backup Bee
1 * * * * (cd ~/wikibots/WikiApiary/backup-bee/; nice -n 19 ./backup-bee.py)
# The one we temporarily had on the scripts host:
# Bumble Bee
20 * * * * wikibees (cd /srv/wikibees/bumble-bee/; nice -n 19 python3 bumble-bee.py -s `date '+\%w:\%H'`)
# Audit Bee
50 * * * * wikibees (cd /srv/wikibees/audit-bee/; nice -n 10 python3 audit-bee.py)
# Worker Bee
]0 0 * * * wikibees (cd /srv/wikibees/maint/; nice -n 19 python3 worker-bee.py)