From f6c86eb4cac7edd77167ba47cdd67906890b7f7a Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Fri, 20 Mar 2026 16:58:22 +0200 Subject: [PATCH] Increase sync rotations frequency --- app/entry.server.tsx | 7 ------- app/routines/list.server.ts | 4 +--- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/app/entry.server.tsx b/app/entry.server.tsx index 4a4fda0fd..912966c21 100644 --- a/app/entry.server.tsx +++ b/app/entry.server.tsx @@ -14,7 +14,6 @@ import { daily, everyHourAt00, everyHourAt30, - everyTwoHours, everyTwoMinutes, } from "./routines/list.server"; import { logger } from "./utils/logger"; @@ -112,12 +111,6 @@ if (!global.appStartSignal && process.env.NODE_ENV === "production") { } }); - cron.schedule("5 */2 * * *", async () => { - for (const routine of everyTwoHours) { - await routine.run(); - } - }); - cron.schedule("*/2 * * * *", async () => { for (const routine of everyTwoMinutes) { await routine.run(); diff --git a/app/routines/list.server.ts b/app/routines/list.server.ts index 594d21d4d..ff0a6bde4 100644 --- a/app/routines/list.server.ts +++ b/app/routines/list.server.ts @@ -15,6 +15,7 @@ export const everyHourAt00 = [ NotifyPlusServerVotingRoutine, NotifyCheckInStartRoutine, NotifyScrimStartingSoonRoutine, + SyncSplatoonRotationsRoutine, ]; /** List of Routines that should occur hourly at XX:30 */ @@ -29,8 +30,5 @@ export const daily = [ CloseExpiredCommissionsRoutine, ]; -/** List of Routines that should occur every 2 hours */ -export const everyTwoHours = [SyncSplatoonRotationsRoutine]; - /** List of Routines that should occur every 2 minutes */ export const everyTwoMinutes = [SyncLiveStreamsRoutine];