I want to execute the task at the specific time in nodejs app.
So I've written the source like the below using Timer.
var _to_execute_time = 1571221163000; //The timestamp to execute the task.
var _current_timestamp = Date.now(); //The current timestamp.
//Scheduling the task using setTimeout();
setTimeout(task_function, _to_execute_time - _current_timestamp);
The problem is that setTimeout() is canceled if system reboots before executing the task.
How could I fix this issue and run the task reliably?