jmrozanec / jmrozanec/cron-utils
Unix cron expression not taking seconds in consideration
- Dominant language
- Java
- Stars
- 1.2k
- Forks
- 272
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.