...
|
...
|
@@ -19,10 +19,10 @@ const app = express(); |
|
|
global.isProduction = process.env.NODE_ENV === 'production';
|
|
|
global.sender = new Sender(config.monitorReport); // 初始化数据上报
|
|
|
|
|
|
schedule.scheduleJob('0 15 6-23 * * *', () => {
|
|
|
logger.info('[process]task start spiderTask'); // 比价任务
|
|
|
spiderTask(dayjs().unix());
|
|
|
});
|
|
|
//schedule.scheduleJob('0 15 6-23 * * *', () => {
|
|
|
// logger.info('[process]task start spiderTask'); // 比价任务
|
|
|
// spiderTask(dayjs().unix());
|
|
|
//});
|
|
|
// schedule.scheduleJob('0 0 * * * *', () => {
|
|
|
// logger.info('[process]task start spiderAllTask'); // 比价任务-all
|
|
|
// spiderAllTask(dayjs().unix());
|
...
|
...
|
|