davsclaus commented on code in PR #12089: URL: https://github.com/apache/camel/pull/12089#discussion_r1398810047
########## components/camel-quartz/src/main/java/org/apache/camel/component/quartz/CamelJob.java: ########## @@ -94,6 +101,18 @@ public void execute(JobExecutionContext context) throws JobExecutionException { } } + private boolean hasTriggerExpired(JobExecutionContext context) { + Date fireTime = context.getFireTime(); + if (context.getTrigger().getStartTime() != null && fireTime.before(context.getTrigger().getStartTime())) { + // Trigger invalid as Fire Time is before Start Time + return true; + } else if (context.getTrigger().getEndTime() != null && fireTime.after(context.getTrigger().getEndTime())) { Review Comment: I think this should not be an else if, as you can have set BOTH start and end time, and then you need to check for both of them. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org