Is there a node-scheduling npm spwan / fork module for the new process, or should we do it ourselves?
var cron = require('node-schedule');
var cronExpress="0 * * * *";
cron.scheduleJob(cronExpress, () => {
//logger.info("Cron expression Rule "+Date());
doSomething();
});
Using the code snippet above, the task starts in the same instance or invokes another process. i. does node -schedule handle this?
source
share