Changed to 1 hour fixed interval for analytics.
Build and Deploy API / build-and-deploy (push) Successful in 1m45s Details

This commit is contained in:
andrewlalis 2025-11-21 15:26:02 -05:00
parent b7daff42ce
commit 8dd80d5c7e
1 changed files with 4 additions and 2 deletions

View File

@ -16,8 +16,10 @@ void main() {
infoF!"Loaded app config: port = %d, webOrigin = %s"(config.port, config.webOrigin);
// Start scheduled tasks in a separate thread:
// JobSchedule analyticsSchedule = new FixedIntervalSchedule(minutes(10));
JobSchedule analyticsSchedule = new DailySchedule(TimeOfDay.min());
JobSchedule analyticsSchedule = new FixedIntervalSchedule(
hours(1),
Clock.currTime(UTC()) + seconds(10)
);
JobScheduler jobScheduler = new TaskPoolScheduler();
jobScheduler.addJob(() {