-
Notifications
You must be signed in to change notification settings - Fork 5
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
Add a way to schedule tasks on a day of week #2
Comments
A full-on cron parser would be great, simply because it's a standard way of expressing when something occurs that a user can supply. |
I agree. I suspect there's two parts to implement this:
I am unfortunately extremely busy in my personal life right now so I won't be able to get to this any time soon, but I'd be happy to accept PRs. |
For reference @JakeWharton here's #65 |
After some investigations, cron's method for scheduling on days of week has proven very annoying. Dropping here so I don't forget. First, the cron API allows specifying schedules that include both a day of month and a day of week. Unlike what you might expect, this isn't and-ed together such that if I specify
Second, the specifier that We should strive to replicate this somewhat broken behavior in cardiologist so that we can support full cron parsing like requested in #65. To do so, we will need to calculate the next matching day of month alongside the next matching day of week and return whichever value occurs sooner. Furthermore, we will need to distinguish between two scenarios:
|
Similar to cron's API.
The text was updated successfully, but these errors were encountered: