From b78bb492647eda4e15371dd738156017dee2179b Mon Sep 17 00:00:00 2001 From: "gao.zhiyuan" Date: Mon, 8 Aug 2022 20:25:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9A=E6=99=82=E4=BB=BB=E5=8B=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/app/lib/schedule/cameraStatePush.js | 8 ++++---- .../api/app/lib/schedule/freshYingshiMsg.js | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/code/VideoAccess-VCMP/api/app/lib/schedule/cameraStatePush.js b/code/VideoAccess-VCMP/api/app/lib/schedule/cameraStatePush.js index 0291207..bedff93 100644 --- a/code/VideoAccess-VCMP/api/app/lib/schedule/cameraStatePush.js +++ b/code/VideoAccess-VCMP/api/app/lib/schedule/cameraStatePush.js @@ -3,11 +3,11 @@ const moment = require('moment') module.exports = function (app, opts) { const cameraOnlinePush = app.fs.scheduleInit( { - interval: '* */15 * * * *', + interval: '0 */15 * * * *', // interval: '* */1 * * * *', // interval: '* */5 * * * *', immediate: false, - // proRun: true, + proRun: true, }, async () => { try { @@ -245,10 +245,10 @@ module.exports = function (app, opts) { // 摄像头离线定时统计推送 const cameraOnlineTimingPush = app.fs.scheduleInit( { - interval: '* */5 * * * *', + interval: '0 */5 * * * *', // interval: '*/10 * * * * *', // dev immediate: false, - proRun: false, + immediate: true, // dev proRun: true, }, async () => { diff --git a/code/VideoAccess-VCMP/api/app/lib/schedule/freshYingshiMsg.js b/code/VideoAccess-VCMP/api/app/lib/schedule/freshYingshiMsg.js index 0d2de0b..80e301d 100644 --- a/code/VideoAccess-VCMP/api/app/lib/schedule/freshYingshiMsg.js +++ b/code/VideoAccess-VCMP/api/app/lib/schedule/freshYingshiMsg.js @@ -4,7 +4,7 @@ const moment = require('moment') module.exports = function (app, opts) { const freshYingshiState = app.fs.scheduleInit( { - interval: '* */5 * * * *', + interval: '0 */5 * * * *', // interval: '*/10 * * * *', immediate: false, // immediate: true,