-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcrontab.example
More file actions
20 lines (14 loc) · 1.03 KB
/
Copy pathcrontab.example
File metadata and controls
20 lines (14 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Example crontab for Smogon Go population scripts
# Run `crontab -e` and paste these lines to automate fetching new stats
# Usage stats: run once a day at 2:00 AM
0 2 * * * /home/ubuntu/proxy-api/populate-usage-stats-bin >> /home/ubuntu/proxy-api/logs/usage.log 2>&1
# Format stats: run once a day at 2:30 AM
30 2 * * * /home/ubuntu/proxy-api/populate-format-stats-bin >> /home/ubuntu/proxy-api/logs/format.log 2>&1
# Leads stats: run once a day at 3:00 AM
0 3 * * * /home/ubuntu/proxy-api/populate-leads-bin >> /home/ubuntu/proxy-api/logs/leads.log 2>&1
# Metagame stats: run once a day at 3:30 AM
30 3 * * * /home/ubuntu/proxy-api/populate-metagame-bin >> /home/ubuntu/proxy-api/logs/metagame.log 2>&1
# Viability stats: run once a day at 4:00 AM
0 4 * * * /home/ubuntu/proxy-api/populate-viability-bin >> /home/ubuntu/proxy-api/logs/viability.log 2>&1
# Invalidate proxy-api months cache after all scripts finish (4:30 AM)
30 4 * * * curl -X POST http://127.0.0.1:9000/_internal/invalidate-months >> /home/ubuntu/proxy-api/logs/invalidate.log 2>&1