replace setTimeout with setInterval in cron.js+
parent
71f0d61d85
commit
dd53cdb662
2
cron.js
2
cron.js
|
@ -497,7 +497,7 @@ const processUser = function(number,rows){
|
||||||
var theCronInterval = null
|
var theCronInterval = null
|
||||||
const setIntervalForCron = function(){
|
const setIntervalForCron = function(){
|
||||||
clearCronInterval()
|
clearCronInterval()
|
||||||
theCronInterval = setTimeout(doCronJobs,parseFloat(config.cron.interval)*60000*60)
|
theCronInterval = setInterval(doCronJobs,parseFloat(config.cron.interval)*60000*60)
|
||||||
}
|
}
|
||||||
const clearCronInterval = function(){
|
const clearCronInterval = function(){
|
||||||
clearInterval(theCronInterval)
|
clearInterval(theCronInterval)
|
||||||
|
|
Loading…
Reference in New Issue