Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
maelanleborgne opened this issue Nov 7, 2023 · 1 comment

Comments

@maelanleborgne
Copy link
Contributor

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.

@rhukster
Copy link
Member

rhukster commented Nov 7, 2023

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants