Browse Source

isDev 修改

dev
wenlele 2 years ago
parent
commit
670ab2e63f
  1. 8
      api/app/lib/schedule/alarms_push.js

8
api/app/lib/schedule/alarms_push.js

@ -1,7 +1,7 @@
const moment = require('moment') const moment = require('moment')
// let isDev = false let isDev = false
let isDev = true // let isDev = true
let proDebug = false let proDebug = false
proDebug = true proDebug = true
@ -9,8 +9,8 @@ proDebug = true
module.exports = function (app, opts) { module.exports = function (app, opts) {
const alarmsPush = app.fs.scheduleInit( const alarmsPush = app.fs.scheduleInit(
{ {
// interval: '12 */1 * * * *', interval: '12 */1 * * * *',
interval: '12 0 0 0 */1 *', // interval: '12 0 0 0 */1 *',
immediate: isDev, immediate: isDev,
proRun: !isDev, proRun: !isDev,
}, },

Loading…
Cancel
Save