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
Infinite loop with day_of_week #469
Comments
Similar issue with another schedule:
It seems when the number is greater than 5, it freezes. |
It seems that setting any invalid values and
Must be stuck in a loop somehow. |
Getting the same issue. I had some code that misunderstands how day_of_week validations should be created. A test rule hash was created for the purpose of having an occurrence for every day of the second week. The hash generated was this:
The correct way to create this hash is like so:
The first hash is actually asking for occurrences for every 0th, 1st, 2nd, 3rd, 4th, 5th, and 6th Tuesday of every month. There is no 0th or 6th Tuesday of any month. When calling |
Essentially doing this makes an infinite loop:
day_of_week(monday: [0])
Full reproduction test case:
The text was updated successfully, but these errors were encountered: