[ 
https://issues.apache.org/jira/browse/CAMEL-19914?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17775329#comment-17775329
 ] 

John Yin commented on CAMEL-19914:
----------------------------------

Hi [~davsclaus], 

Thanks for your response and for improving the exception message in Camel.  For 
quartz cron routes, the misfireInstruction of omitting the previous misfire is 
2 as shown below.

from("quartz://test-1?cron=0+0/3+{*}+?+{*}+*&trigger.timeZone=America/New_York&trigger.misfireInstruction={*}2{*}").routeId('ROUTE_test_1')

Thanks again for your help!

 

 

> 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)

Reply via email to