feat: add distribution release and recovery controls
This commit is contained in:
@@ -33,11 +33,11 @@ export function startScheduler() {
|
||||
if (!isEnabled(getRuntimeEnv().ENABLE_SCHEDULER, true)) return;
|
||||
if (globalThis.__kocLoopScheduler) return;
|
||||
globalThis.__kocLoopScheduler = cron.schedule(
|
||||
"0 10 * * *",
|
||||
"0 9 * * *",
|
||||
() => void runDailyJob().catch((error) => {
|
||||
console.error("[KOC LOOP] daily scheduler failed", error);
|
||||
}),
|
||||
{ timezone: "Asia/Shanghai", noOverlap: true },
|
||||
);
|
||||
console.info("[KOC LOOP] scheduler enabled at 10:00 Asia/Shanghai");
|
||||
console.info("[KOC LOOP] scheduler enabled at 09:00 Asia/Shanghai");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user