fix: time

This commit is contained in:
chaosBreaking
2019-09-29 01:18:34 +08:00
parent ad79551012
commit 5021a22daa

View File

@@ -79,7 +79,7 @@ const jobs = [
const now = new Date(); const now = new Date();
if (now.getHours() !== 23 && now.getMinutes() < 58) { if (now.getHours() !== 23 && now.getMinutes() < 58) {
mylog.error('[Schedule Job] 不在合理时间启动...程序结束'); mylog.error('[Schedule Job] 不在合理时间启动...程序结束');
return 0; return done();
} }
mylog.info('[Schedule Job] 开始定时计算作业...'); mylog.info('[Schedule Job] 开始定时计算作业...');
let currentIndex = await system.findOne({ let currentIndex = await system.findOne({
@@ -109,7 +109,7 @@ const jobs = [
done(); done();
}, },
type: 'every', type: 'every',
slot: '3am', slot: '0 0 3 * * *',
priority: 'highest', priority: 'highest',
unique: { unique: {
id: 'mine' id: 'mine'