Increase Garmin sync frequency to every 3 hours
Some checks failed
Deploy / deploy (push) Has been cancelled
Some checks failed
Deploy / deploy (push) Has been cancelled
Change cron schedule from 4x daily (0,6,12,18 UTC) to 8x daily (every 3 hours) to keep body battery and other Garmin data fresher. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -49,15 +49,14 @@ export async function register() {
|
||||
triggerCronEndpoint("notifications", "Notifications");
|
||||
});
|
||||
|
||||
// Schedule Garmin sync 4 times daily (every 6 hours) to ensure data is available
|
||||
// before European morning notifications
|
||||
cron.default.schedule("0 0,6,12,18 * * *", () => {
|
||||
// Schedule Garmin sync 8 times daily (every 3 hours) to keep data fresh
|
||||
cron.default.schedule("0 */3 * * *", () => {
|
||||
console.log("[cron] Triggering Garmin sync...");
|
||||
triggerCronEndpoint("garmin-sync", "Garmin sync");
|
||||
});
|
||||
|
||||
console.log(
|
||||
"[cron] Scheduler started - notifications every 15 min, Garmin sync at 00:00/06:00/12:00/18:00 UTC",
|
||||
"[cron] Scheduler started - notifications every 15 min, Garmin sync every 3 hours",
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user