This commit is contained in:
xiongxiao
2026-03-18 03:12:34 +08:00
committed by cnb
parent 9038862960
commit 598737d301

View File

@@ -44,6 +44,7 @@ export const notifyJob = () => {
const isPm2 = process.env.PM2_HOME !== undefined; const isPm2 = process.env.PM2_HOME !== undefined;
if (import.meta.main || isPm2) { if (import.meta.main || isPm2) {
getMinimaxRemains(); getMinimaxRemains();
notifyJob();
// 每10分钟执行一次 // 每10分钟执行一次
new CronJob('*/10 * * * *', async () => { await getMinimaxRemains(); }, null, true); new CronJob('*/10 * * * *', async () => { await getMinimaxRemains(); }, null, true);
// 每一个小时执行一次 // 每一个小时执行一次