up
This commit is contained in:
@@ -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);
|
||||
// 每一个小时执行一次
|
||||
|
||||
Reference in New Issue
Block a user