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

feat: [435] add support for extended cron syntax #877

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

alexanderkrum
Copy link

Description

Related Issue

#435

Motivation and Context

How Has This Been Tested?

Added more unit tests.

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • If my change introduces a breaking change, I have added a ! after the type/scope in the title (see the Conventional Commits standard).

@alexanderkrum
Copy link
Author

@sheerlox need a clarification for this feature:

L: The letter L can be used in the day of the month field to indicate the last day of the month. When used in the day of the week field in conjunction with the # character, it denotes the last specific weekday of the month. For example, 5#L represents the last Friday of the month.

Do I understand this right?
Let's say the 5#L resolves to Friday, 25th of Jan. Does this lead to (* * 25 * FRI) ?

@sheerlox
Copy link
Collaborator

Not really, because day-of-month and day-of-week work as a union and not an intersection. So basically the {x}#L string is a feature of its own.

Having said that, it would be nice to have the option to enable treating them as intersections if you think that'd be a good way of implementing {x}#L.

@sheerlox
Copy link
Collaborator

But that's a feature of its own, and implementing {x}#L should be way more straightforward.

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

Successfully merging this pull request may close these issues.

None yet

2 participants