Commit 2cc45819 authored by 姚广胤's avatar 姚广胤

更改task

parent a4a52fbc
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: ygy * @Author: ygy
* @Date: 2018-03-14 19:40:01 * @Date: 2018-03-14 19:40:01
* @Last Modified by: ygy * @Last Modified by: ygy
* @Last Modified time: 2018-03-27 10:11:09 * @Last Modified time: 2018-03-27 19:52:56
*/ */
const Koa = require('koa'); const Koa = require('koa');
const send = require('koa-send'); const send = require('koa-send');
...@@ -60,7 +60,7 @@ app.use(rest.restify()); ...@@ -60,7 +60,7 @@ app.use(rest.restify());
app.use(router()); app.use(router());
// start task schedule // start task schedule
schedule.scheduleJob({ hour: 10, minute: 20, second: 0 }, () => { schedule.scheduleJob({ hour: 8, minute: 20, second: 0 }, () => {
task.runTiming(); task.runTiming();
}); });
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: ygy * @Author: ygy
* @Date: 2018-03-14 19:39:46 * @Date: 2018-03-14 19:39:46
* @Last Modified by: ygy * @Last Modified by: ygy
* @Last Modified time: 2018-03-27 10:02:58 * @Last Modified time: 2018-03-27 19:52:28
*/ */
const historyService = require('../services/historyService'); const historyService = require('../services/historyService');
...@@ -34,7 +34,7 @@ const runTiming = async () => { ...@@ -34,7 +34,7 @@ const runTiming = async () => {
let iterateTime; let iterateTime;
if (process.env.NODE_ENV === 'production') { if (process.env.NODE_ENV === 'production') {
iterateTime = 10; iterateTime = 2;
} else { } else {
iterateTime = 2; 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