-
Notifications
You must be signed in to change notification settings - Fork 264
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
ExecutionTime.forCron fails on pattern "0 0/30 * * * ?" #78
Comments
@rwiesemann thank you for reporting this. You are welcome to help on the issue contributing a test for it. |
I've run into the same problem. Apparently your code is throwing NoSuchValueExceptions but catches them in EveryFieldValueGenerator.generateCandidatesNotIncludingIntervalExtremes. As the resulting execution times are OK in my testing I would recommend not logging the exception as it seems to be a normal case with intervals. Getting rid of the exception completely would be perhaps even better. FYI the test cases also encounter the exception when running but as you've not configured logging in your test cases they do not show on the console. If you're interesed I would be happy to provide a pull request for a rework without the exception. Thanks Dominik |
Same issue with any intervals. |
@maehld can you please public your fixes, maybe on your fork - i will pick it. Right now i work with this issue. |
Hi. I will try to get a fork working by tomorrow. |
@maehld @kostapc Just created a new branch, where some changes were introduced to fix issue #58 that may be related to this same problem. Not merging into master yet, since there are some tests failing. A review over introduced changes and additional fixes would be welcome. |
@jmrozanec thanks a lot for you work! |
I will have a look tomorrow at the branch. Sorry for not getting something to work by friday but work got in the way. |
@maehld sure! No problem! |
i fix log level in some cases and provide extended tests valued for me. @jmrozanec - you do all main work! Thank a lot! Waiting for next release in maven repo. |
@kostapc @maehld @rwiesemann Merged! Thank you for contributing to cron-utils! |
@kostapc @maehld @rwiesemann New version released! Please check details here |
I use cronutils version 3.6.1.
The Crontype.QUARTZ pattern "0 0/30 * * * ?" fails on
with exception
The text was updated successfully, but these errors were encountered: