I created a cron job with node cron, for now the job is really simple:
module.exports.start = async ( args ) => {
console.log("start cron");
// every 5 minutes
CronJob.schedule('*/5 * * * *', () => {
chatLog.send("A text log sent with telegram bot");
});
}
Now for the third day I've noticed that the cron works like a charm all day long but suddenly stop during the night a 1 o'clock.
In the morning when I start working the cron starts again.
My app is based on express framework and hosted on a plesk server with phusion passenger extension.
Now I suspect that in the night the server stop working, and that a restart happen in the morning at the first api call. Is it possible? Or do you think that I'm missing something...
Tnx