39 lines
1.8 KiB
Plaintext
39 lines
1.8 KiB
Plaintext
# This is a sample crontab.
|
|
# Change WN to where you checked out WeatherNews.jl.
|
|
WN=/home/anon/src/vern.cc/gg/WeatherNews.jl
|
|
|
|
# show jst pdt utc
|
|
# Morning 05:00 13:00 20:00
|
|
# Sunshine 08:00 16:00 23:00
|
|
# Coffee 11:00 19:00 02:00
|
|
# Afternoon 14:00 22:00 05:00
|
|
# Evening 17:00 01:00 08:00
|
|
# Moon 20:00 04:00 11:00
|
|
|
|
# check the schedule an hour before each show and an hour into each show
|
|
# m h dom mon dow command
|
|
5 12,14,15,17,18,20,21,23,0,2,3,5 * * * cd $WN && julia --project -O0 --compile=min bin/wndb-insert.jl
|
|
|
|
# fix the schedule if necessary 20 minutes into each show
|
|
# m h dom mon dow command
|
|
20 13,16,19,22,01,04 * * * cd $WN && julia --project -O0 --compile=min bin/wndb-fix-conflict.jl >> log/fix-conflict.log 2>&1
|
|
|
|
# record video ids every 3 hours
|
|
# m h dom mon dow command
|
|
0 */3 * * * cd $WN && julia --project -O0 --compile=min bin/wndb-video.jl
|
|
|
|
# Make a final view count update after 240 hours; extra one for redundancy
|
|
# m h dom mon dow command
|
|
5 13,16,19,22,01,04 * * * cd $WN && julia --project -O0 --compile=min bin/wndb-viewcount-update.jl
|
|
30 14,17,20,23,02,05 * * * cd $WN && julia --project -O0 --compile=min bin/wndb-viewcount-update.jl
|
|
|
|
# record mscale hourly; extra ones are for redundancy in case first failed
|
|
# m h dom mon dow command
|
|
0 * * * * cd $WN && bin/mscale-record.sh sql/wn.db
|
|
3 * * * * cd $WN && bin/mscale-record.sh sql/wn.db
|
|
10 * * * * cd $WN && bin/mscale-record.sh sql/wn.db
|
|
|
|
# daily database backup
|
|
# m h dom mon dow command
|
|
2 8 * * * cd $WN && bin/wndb-backup.sh
|