knguyen2525
knguyen2525
I also need to do this.
Thanks so much! How would I stop it? var job = new CronJob('*/10 \* \* \* \* *', function(){ console.log("please stop me"); }); I tried job.stop(); Thanks again On Thu,...
Hmmm, getting a job.stop is not a function. var job = new CronJob('*/10 \* \* \* \* *', function(){ console.log("running"); job.stop(); }); Any ideas :(
yes, I also ran through the cron.js code to make sure it had the stop logic.
Same issue, BUT I just manually set job.events = [] and job.isStopped = true and that did the trick! Cheers!
Using RHEL 6.4. My redis servers and node server are on the same machine, but it is remote.