camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CAMEL-10749) Quartz2 interrupt job
Date Tue, 28 Feb 2017 10:35:45 GMT

     [ https://issues.apache.org/jira/browse/CAMEL-10749?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Claus Ibsen updated CAMEL-10749:
--------------------------------
    Component/s: camel-quartz2

> Quartz2 interrupt job
> ---------------------
>
>                 Key: CAMEL-10749
>                 URL: https://issues.apache.org/jira/browse/CAMEL-10749
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-quartz2
>            Reporter: Bartosz Kowalik
>            Assignee: Claus Ibsen
>            Priority: Minor
>
> Currently there is no way to interrupt Job that was created by Quartz because of
> {code:java}
> //org.apache.camel.component.quartz2.QuartzComponent
> protected void doStop() throws Exception {
>         super.doStop();
>         if (scheduler != null) {
>             AtomicInteger number = (AtomicInteger) scheduler.getContext().get(QuartzConstants.QUARTZ_CAMEL_JOBS_COUNT);
>             if (number != null && number.get() > 0) {
>                 LOG.info("Cannot shutdown scheduler: " + scheduler.getSchedulerName()
+ " as there are still " + number.get() + " jobs registered.");
>             } else {
>                 LOG.info("Shutting down scheduler. (will wait for all jobs to complete
first.)");
>                 scheduler.shutdown(true);
>                 scheduler = null;
>             }
>         }
>     }
> {code}
> Is this by design or it is really broken compatibility with Quartz. There is undocumented
option in Quartz that you can interrupt Job:
> {code}
> org.quartz.scheduler.interruptJobsOnShutdown
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message