Skip to content

Unix cron expression not taking seconds in consideration #483

Description

@tungnath

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions