Commit a4a52fbc authored by 姚广胤's avatar 姚广胤

更改task时间

parent 727f2a61
......@@ -2,7 +2,7 @@
* @Author: ygy
* @Date: 2018-03-14 19:40:01
* @Last Modified by: ygy
* @Last Modified time: 2018-03-26 14:36:17
* @Last Modified time: 2018-03-27 10:11:09
*/
const Koa = require('koa');
const send = require('koa-send');
......@@ -60,7 +60,7 @@ app.use(rest.restify());
app.use(router());
// start task schedule
schedule.scheduleJob({ hour: 4, minute: 0, second: 0 }, () => {
schedule.scheduleJob({ hour: 10, minute: 20, second: 0 }, () => {
task.runTiming();
});
......
......@@ -2,7 +2,7 @@
* @Author: ygy
* @Date: 2018-03-14 19:39:46
* @Last Modified by: ygy
* @Last Modified time: 2018-03-26 09:46:19
* @Last Modified time: 2018-03-27 10:02:58
*/
const historyService = require('../services/historyService');
......@@ -34,7 +34,7 @@ const runTiming = async () => {
let iterateTime;
if (process.env.NODE_ENV === 'production') {
iterateTime = 50;
iterateTime = 10;
} else {
iterateTime = 2;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment