-
Notifications
You must be signed in to change notification settings - Fork 0
/
crontab
33 lines (26 loc) · 1.16 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
# server cron jobs
MAILTO="mail@dokku.me"
PATH=/usr/local/bin:/usr/bin:/bin
SHELL=/bin/bash
# m h dom mon dow username command
# * * * * * dokku command to be executed
# - - - - -
# | | | | |
# | | | | +----- day of week (0 - 6) (Sunday=0)
# | | | +------- month (1 - 12)
# | | +--------- day of month (1 - 31)
# | +----------- hour (0 - 23)
# +----------- min (0 - 59)
### KEEP SORTED IN TIME ORDER
### PLACE ALL CRON TASKS BELOW
# import everything else - every night
0 1 * * * dokku dokku --rm run ftc python ./manage.py import_all
# import charities - Thursday night
# import_oscr is run first because it seems to time out in the middle of the night
0 20 * * 4 dokku dokku --rm run ftc python ./manage.py import_oscr
0 2 * * 0-5 dokku dokku --rm run ftc python ./manage.py import_charities
# import companies - Friday night
0 2 * * 6 dokku dokku --rm run ftc python ./manage.py import_companies
# regenerate the elasticsearch index - every night
0 4 * * * dokku dokku --rm run ftc python ./manage.py es_index
### PLACE ALL CRON TASKS ABOVE, DO NOT REMOVE THE WHITESPACE AFTER THIS LINE