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