Quartz Scheduler not stopping after shutdown
Please try to apply with these configuration when init scheduler
org.quartz.threadPool.makeThreadsDaemons=true
org.quartz.scheduler.makeSchedulerThreadDaemon=true
org.quartz.scheduler.interruptJobsOnShutdown=true
org.quartz.plugin.shutdownhook.class = org.quartz.plugins.management.ShutdownHookPlugin
org.quartz.plugin.shutdownhook.cleanShutdown = true
You can refer to this link for more detail: https://www.techpaste.com/2016/03/quartz-scheduler-shutdown/
If there are any jobs executing when you call shutdown, whether to interrupt those jobs or not depends on the property org.quartz.scheduler.interruptJobsOnShutdown
.
See http://jira.terracotta.org/jira/browse/QTZ-41?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel . I am unable to find more documentation on this.
The other property is org.quartz.scheduler.makeSchedulerThreadDaemon=true
, which will shutdown quartz scheduler as soon as your calling thread shuts down. I do not know what happens to the state of the jobs.
As mentioned in the comments, post some code and configuration to get clear answer.
you can use
org.quartz.plugin.shutdownhook.cleanShutdown=TRUE
in your quartz properties file