I made a scheduled job by the following code:
const schedule = require('node-schedule');
scheduleAuto1A = schedule.scheduleJob(time, function(){
// do some
});
a user enter the cron job time and it have to work until the user cancel it.
but the problem is:
When i restart my app or reboot server, it destroy.
How can i make a scheduled job for ever?