fix: time
This commit is contained in:
@@ -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'
|
||||||
|
|||||||
Reference in New Issue
Block a user