From b188b021321a7b42353636a35afe5e531c94a94e Mon Sep 17 00:00:00 2001 From: "hudy@mac-air" Date: Wed, 12 Jun 2024 16:54:59 +0700 Subject: [PATCH] refactor: run day-stats cronjob at 12,18,20 --- packages/be-scheduler/src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/be-scheduler/src/main.ts b/packages/be-scheduler/src/main.ts index 8f676e34..caccdf01 100644 --- a/packages/be-scheduler/src/main.ts +++ b/packages/be-scheduler/src/main.ts @@ -32,7 +32,7 @@ connectPubClient((err, redis) => { // run every 20pm const runAt20h = 'runAt20pm' - cronJob.create(runAt20h, '5 12,20 * * *', () => { + cronJob.create(runAt20h, '5 12,18,20 * * *', () => { // cronJob.create(runAt20h, { every: "minute" }, () => { const CHANNEL_DAY_STATS = 'stats:day-stats' redis.publish(CHANNEL_DAY_STATS, 'heelo')