Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-19914

Start and stop a quartz route messes up its schedule

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • 3.20.6
    • None
    • camel-quartz
    • None
    • Unknown

    Description

      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.     }

      )

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bocamel John Yin
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: