Browse Source

Merge branch 'dev_trial' of https://gitea.anxinyun.cn/free-sun/FS-IOT into dev_trial

release_1.1.2
deartibers 2 years ago
parent
commit
c2d9b39d36
  1. 8
      code/VideoAccess-VCMP/api/app/lib/schedule/cameraStatePush.js
  2. 2
      code/VideoAccess-VCMP/api/app/lib/schedule/freshYingshiMsg.js

8
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 () => {

2
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,

Loading…
Cancel
Save