From a2da377a57b131d84809a2f2a3ba57015f24b42d Mon Sep 17 00:00:00 2001 From: Rasmus Luckow-Nielsen Date: Mon, 17 Jun 2024 09:24:34 +0200 Subject: [PATCH] Update crontab 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. --- docker/crontab | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/crontab b/docker/crontab index cfb29f4..fe622b2 100644 --- a/docker/crontab +++ b/docker/crontab @@ -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 @@ -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