I am scheduling a cron operation like this
@Scheduled(cron = "0 */5 11-15 * * SUN-THU", zone = "Asia/Kolkata")
public void cronner() throws ParseException {
System.out.println("cron is running");
}
So, this means, run the job every 5 minutes from 11 am to 3 pm from Sunday to Thursday.
This is working great but the problem is, it is still running after 3 pm.
I am getting the log cron is running
even after 3 pm. What am I doing wrong? Any help would be appreciated. Thanks