Try with scheduler.trigger.misfireInstruction=2
On Tue, Jun 29, 2021 at 12:48 PM shiva kumar g.v <shiv.pe...@gmail.com> wrote: > > Hi Claus, > > Camel version=3.8.0 > > Issue faced: when ever i restart my springboot jar i get below message in > log and Quartz scheduler immidiately trigger job. > > I want to stop this behaviour and allow scheduler to run at next > scheduled interval > instead of running immediately. .ie <http://interval.ie/> using misfire > instruction=2 > > > > 28 Jun 2021 19:35:43,025 [INFO] - > org.quartz.impl.jdbcjobstore.JobStoreSupport.recoverMisfiredJobs(JobStoreSupport.java:973) > - Handling 1 trigger(s) that missed their scheduled fire-time. > > > > Endpoint: > > > > SqlEndpoint > pollingConsumer=(SqlEndpoint)endpoint("sql:classpath:config/DbQuery.sql?dataSource=#pollingDBDetails&maxMessagesPerPoll={{maxMessagesPerPoll}}" > > > +"&scheduler=quartz&scheduler.cron={{schedulerCronPattern}}&scheduler.triggerId={{schedulerTriggerID}}&scheduler.triggerGroup={{schedulerTriggerGroup}}&scheduler.timeZone={{schedulerTimeZone}}"; > > > > > > Quartz setup: > > > > QuartzComponent qc = new QuartzComponent(); > > Properties props = new Properties(); > > props.load(new > ClassPathResource("config/quartz2.properties").getInputStream()); > > > > registry.bind("quartz", qc ); > > > Thanks, > Shiva > > > > On Tue, 29 Jun 2021, 4:03 p.m. Claus Ibsen, <claus.ib...@gmail.com> wrote: > > > Hi > > > > Can you provide more details. What Camel version. And post at least > > all the route code where you use that quartz thingy. > > And paste the exception / error message. > > > > On Mon, Jun 28, 2021 at 7:07 PM shiva kumar g.v <shiv.pe...@gmail.com> > > wrote: > > > > > > Hi team, > > > > > > How can we set trigger misfire instruction when using > > > QuartzScheduledPollConsumerScheduler. ? > > > > > > I tried setting scheduler.trigger.misfireInstruction=2 .it threw error. > > > Invalid parameter. > > > > > > Thanks, > > > Shiva > > > > > > > > -- > > Claus Ibsen > > ----------------- > > http://davsclaus.com @davsclaus > > Camel in Action 2: https://www.manning.com/ibsen2 > > -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2