'Cron job between certain hours
I need to run a specific job every hour but the plan is to run it between certain hours. I was able to run it where the first-hour parameter is lower than the second example
const job = schedule.scheduleJob('0 9-19 * * *', async function(){
let data = await heartBeat.observe();
console.log('DATA', data);
});
This pattern executes the method every hour between 9-19 but I want to run it like example from 17-8 (from 17 to 8 tomorrow in the morning) every hour.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
