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

Unix cron expression not taking seconds in consideration #483

Open
tungnath opened this issue Oct 1, 2021 · 1 comment
Open

Unix cron expression not taking seconds in consideration #483

tungnath opened this issue Oct 1, 2021 · 1 comment

Comments

@tungnath
Copy link

tungnath commented Oct 1, 2021

Cron expressions like -> (*/2 * * * *) are supposed to run every two minutes from a scheduler that checks every 10 second if now is the execution time using

ExecutionTime.isMatch(ZonedDateTime zd)

Issue :
In the 2nd , 4th , 6th ...... minute, the isMatch(date) method returns true for each of the 10th second in that particular minute.
So cron expression runs 6 time instead of 1 time.

So my query was, is it like that only ? or I am making any mistake ?

Need help with this.

Note : Also I tried to build the code from latest branch(9.1.5) as well from the master branch. It didn't build properly.
Tests are failing.

@jmrozanec
Copy link
Owner

@tungnath thank you for reporting this. May we ask you to provide a PR with some test reproducing the issue? We just checked for the tests, and seem to build ok on JDK16.

@jmrozanec jmrozanec added this to the next milestone Oct 3, 2021
@jmrozanec jmrozanec modified the milestones: 9.1.7, next Jul 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment