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,