We have integration scenarios with muliple quartz from endpoints in a single camel context deployed as osgi bundles. We observe that if one of the quartz configuration has no more schedules and if the bundle were to get restarted, the entire context fails to start thereby preventing future execution of other routes. Error seen in the stacktrace
Caused by: org.apache.camel.RuntimeCamelException: org.quartz.SchedulerException: Based on configured schedule, the given trigger 'myGroup.expired' will never fire.
The issue is becoming a blocker for our scenarios with multiple custom future schedules. Updating the quartz configuration each time we encounter the error is becoming difficult. Hence requesting your quick insights and a resoultion.
I am enclosing a junit to help you recreate the issue. quartz-error.zip The scenario has two routes expiredScheduleRoute and recurringScheduleRoute. The expectation is that the context starts and recurringScheduleRoute continues to run every 2 seconds. I believe we may need a parameter to the quartz endpoint to skip the validation for expiredScheduleRoute