grav icon indicating copy to clipboard operation
grav copied to clipboard

[FeatureRequest] [Scheduler] Add an option to the scheduler command to run past due jobs

Open maelanleborgne opened this issue 2 years ago • 1 comments

Hi, I'm hosting one of my Grav project on OVH, which doesn't allow to set the cron 'minute' field for the cron periodicity. That means We can only get the cron to run every hour at a fixed minute time. I think for this use case it would be great to have the option to run the scheduler command with an option to make it run jobs that are past due (if nextRunDate <= currentTime). I'd suggest something like 'catchup' or 'overdue' for the option name, but I'm open to any suggestion :)

Let me know if you like the idea and I'll submit a PR when I get some time to work on this.

maelanleborgne avatar Nov 07 '23 09:11 maelanleborgne

I'm open to this if it's an optional setting, and defaults to off (i.e. previous behavior of not running past due). Cheers!

rhukster avatar Nov 07 '23 09:11 rhukster