mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-03-21 18:04:39 -05:00
Increase sync rotations frequency
This commit is contained in:
parent
4ad1186a17
commit
f6c86eb4ca
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user