-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
feat(schedule): use croner
library to check schedule
#32573
feat(schedule): use croner
library to check schedule
#32573
Conversation
cron-parser
library to check schedulecroner
library to check schedule
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The massaging of the input value is missing, else LGTM
It was disicussed internally to leave it as we will need to add more complexity to support something that is essentially an invalid configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should update docs to.only use five part cron syntax, because we don't care for second and minute anyway.
In all examples of cron syntax, we have 5 parts |
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
croner
library to check schedulecroner
library to check schedule
🎉 This PR is included in version 39.30.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Changes
Use the nextRun() method from croner library to get the next scheduled date. And compare it to current date to check if current date lies in the cron schedule.
Context
Cover implementation requirements of: #32414
Documentation (please check one with an [x])
How I've tested my work (please select one)
I have verified these changes via: