[ https://issues.apache.org/jira/browse/CAMEL-19914?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17769178#comment-17769178 ]
John Yin commented on CAMEL-19914: ---------------------------------- Thanks Claus! I should have paid more attention to the misfire instruction in the doc. Just for the record, I should have used from("quartz://test?cron=0+0/3+{*}+?+{*}+*&trigger.misfireInstruction=4") Thanks again! > Start and stop a quartz route messes up its schedule > ---------------------------------------------------- > > Key: CAMEL-19914 > URL: https://issues.apache.org/jira/browse/CAMEL-19914 > Project: Camel > Issue Type: Bug > Components: camel-quartz > Affects Versions: 3.20.6 > Reporter: John Yin > Priority: Major > > When a stopped quartz route is resumed, if it has missed a previously > scheduled firing because of the stop, it would immediately fire regardless > its defined schedule. Here is an example: > from("quartz://test?cron=0+0/3+*+?+*+*").routeId("ROUTE_test").autoStartup(true).log("in > test") > > from("timer://start_stop_test?repeatCount=1").autoStartup(true) > .process({ > // stop route "ROUTE_test" using routeController API > // wait for more than 3 minutes so that the stopped ROUTE_test will > miss a firing > // resume route "ROUTE_test" using routeController API. You will see > ROUTE_test immediately fire regardless whether it is the scheduled time or > not. > }) -- This message was sent by Atlassian Jira (v8.20.10#820010)