From 5021a22daa2b2be6803e1f4360a1610fe0f78083 Mon Sep 17 00:00:00 2001 From: chaosBreaking Date: Sun, 29 Sep 2019 01:18:34 +0800 Subject: [PATCH] fix: time --- src/jobs/jobs.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jobs/jobs.js b/src/jobs/jobs.js index ce18ea9..f0a2c6a 100644 --- a/src/jobs/jobs.js +++ b/src/jobs/jobs.js @@ -79,7 +79,7 @@ const jobs = [ const now = new Date(); if (now.getHours() !== 23 && now.getMinutes() < 58) { mylog.error('[Schedule Job] 不在合理时间启动...程序结束'); - return 0; + return done(); } mylog.info('[Schedule Job] 开始定时计算作业...'); let currentIndex = await system.findOne({ @@ -109,7 +109,7 @@ const jobs = [ done(); }, type: 'every', - slot: '3am', + slot: '0 0 3 * * *', priority: 'highest', unique: { id: 'mine'