I'm writing an application in node.js and need some sort of job scheduler like cron. I can't use cron because it will cause issues if the job is executed while the process is offline. I've tried node-schedule but it isn't working and the handle always returns null for me no matter if I use a valid date or not. Thanks in advance.
In my projects i work with node-cron:
https://www.npmjs.com/package/node-cron
var cron = require('node-cron');
cron.schedule('* * * * *', () => {
console.log('running a task every minute');
});