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