Skip to content

Commit

Permalink
Update crontab
Browse files Browse the repository at this point in the history
Changed the timing for the Refresh command, because I suspect there is a race condition with the regular fetching command, which I have changed to run every 10 mins instead of every 5.
  • Loading branch information
luckow authored Jun 17, 2024
1 parent 54e14e9 commit a2da377
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/crontab
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
PATH=/usr/bin:/bin:/usr/local/bin

# Fetching data from HarvestAPI every 5 mins.
*/5 * * * * www-data /harvester/app/console 2>&1 harvester:fetch --updated-yesterday | logger -t harvester
*/10 * * * * www-data /harvester/app/console 2>&1 harvester:fetch --updated-yesterday | logger -t harvester

# Fetching weekly data from HarvestAPI every hour.
33 * * * * www-data /harvester/app/console 2>&1 harvester:fetch --updated-week | logger -t harvester
Expand All @@ -13,4 +13,4 @@ PATH=/usr/bin:/bin:/usr/local/bin

# This will delete all records that's two months old and refill entries again.
# This is done to get rid of entries that might have been deleted.
0 4 * * * www-data /harvester/app/console 2>&1 harvester:refresh --days=62 --preserve-roles | logger -t harvester
3 5 * * * www-data /harvester/app/console 2>&1 harvester:refresh --days=62 --preserve-roles | logger -t harvester

0 comments on commit a2da377

Please sign in to comment.