From d7a148c208056ab5f8dd00ce6da04719022185a9 Mon Sep 17 00:00:00 2001 From: devthejo Date: Fri, 11 Jul 2025 08:54:07 +0200 Subject: [PATCH] fix: notif bg location lost, avoid night --- services/watchers/src/watchers/geodata-cleanup-cron.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/watchers/src/watchers/geodata-cleanup-cron.js b/services/watchers/src/watchers/geodata-cleanup-cron.js index 68c5f3b..45902b4 100644 --- a/services/watchers/src/watchers/geodata-cleanup-cron.js +++ b/services/watchers/src/watchers/geodata-cleanup-cron.js @@ -5,7 +5,7 @@ const cron = require("~/libs/cron") const { DEVICE_GEODATA_MAX_AGE } = require("~/constants/time") const tasks = require("~/tasks") -const CLEANUP_CRON = "0 */1 * * *" // Run every hour +const CLEANUP_CRON = "0 9-19 * * *" // Run every hour from 9h to 19h const MAX_PARALLEL_PROCESS = 10 const COLDGEODATA_DEVICE_KEY_PREFIX = "device:geodata:" const COLDGEODATA_OLD_KEY_PREFIX = "old:device:geodata:"