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