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

Bug: 0 17 1 1/3 * isn't valid #150

Closed
lakridserne opened this issue Oct 28, 2022 · 1 comment
Closed

Bug: 0 17 1 1/3 * isn't valid #150

lakridserne opened this issue Oct 28, 2022 · 1 comment

Comments

@lakridserne
Copy link

This library says the expression 0 17 1 1/3 * isn't valid. But it is a valid cron expression. Can you please fix?

@dragonmantank
Copy link
Owner

This is indeed an invalid expression. You are month range of 1/3, which evaluates to Months 1, stepping by 3 values. Since the range is effectively 1 month, it's impossible to skip any further.

If you want to run something every three months, you would need to use */3 instead. That evaluates to `Months 1-12, stepping by 3 values.

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