我注意到有时石英调度程序会自动暂停某些作业。这是一个错误还是任何配置问题?
所有预定作业都使用CronTrigger。
我怀疑每当服务器停止时,它可能会自动暂停正在运行的作业?我有以下ServletContextListener代码用于关闭应用程序。
public void shutdownScheduler(Scheduler scheduler) {
try {
if (null != scheduler) {
scheduler.shutdown();
}
} catch (Exception e) {
log.error(e);
}
}
下面列出了一些石英属性......
org.quartz.scheduler.wrapJobExecutionInUserTransaction = false
org.quartz.threadPool.class = org.quartz.simpl.SimpleThreadPool
org.quartz.threadPool.threadCount = 20
org.quartz.threadPool.threadPriority = 5
org.quartz.threadPool.threadsInheritContextClassLoaderOfInitializingThread = true
org.quartz.jobStore.misfireThreshold = 60000