From f49871e35097636b6c0a3a0fd4d291d51da09a46 Mon Sep 17 00:00:00 2001 From: bo0tzz Date: Wed, 21 Sep 2022 14:16:02 +0200 Subject: [PATCH] Only run scheduled geocoding task once per day This prevents queuing the same asset for multiple tasks at the same time, which would result in duplicated mapbox requests. --- .../immich/src/modules/schedule-tasks/schedule-tasks.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/apps/immich/src/modules/schedule-tasks/schedule-tasks.service.ts b/server/apps/immich/src/modules/schedule-tasks/schedule-tasks.service.ts index 30f1f02d885d0..629a0bfbfc366 100644 --- a/server/apps/immich/src/modules/schedule-tasks/schedule-tasks.service.ts +++ b/server/apps/immich/src/modules/schedule-tasks/schedule-tasks.service.ts @@ -80,7 +80,7 @@ export class ScheduleTasksService { } } - @Cron(CronExpression.EVERY_5_SECONDS) + @Cron(CronExpression.EVERY_DAY_AT_2AM) async reverseGeocoding() { const isMapboxEnable = this.configService.get('ENABLE_MAPBOX');