Hi!
I was thinking that maybe is interesting to provide some alternatives when the CRON time is not a big requirement. Let's imagine that I want to run a task every 10 minutes, every day, twice a day, etc...
var Scheduled = require("scheduled");
var myJob = new Scheduled({
id: "minuteTaskEven",
pattern: "Twice a day", // Every day, Every Monday, Twice a week, etc...
task: function(){
console.log("Minuto par");
}
}).start();
What do you think?
Thanks a lot in advance!
Hi!
I was thinking that maybe is interesting to provide some alternatives when the CRON time is not a big requirement. Let's imagine that I want to run a task every 10 minutes, every day, twice a day, etc...
What do you think?
Thanks a lot in advance!