John Yin created CAMEL-19914:
--------------------------------
Summary: 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
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)