Node-Red configuration
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

is_job_running.js 305B

12345678910
  1. const CronJob = require('../lib/cron.js').CronJob;
  2. console.log('Before job instantiation');
  3. const job = new CronJob('* * * * * *', function() {
  4. const d = new Date();
  5. console.log('Every second:', d);
  6. });
  7. console.log('After job instantiation');
  8. job.start();
  9. console.log('is job running? ', job.running);