Increase sync rotations frequency

This commit is contained in:
Kalle 2026-03-20 16:58:22 +02:00
parent 4ad1186a17
commit f6c86eb4ca
2 changed files with 1 additions and 10 deletions

View File

@ -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();

View File

@ -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];