Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

添加spring容器关闭时关闭任务功能 #583

Merged
merged 3 commits into from
May 31, 2020
Merged

Conversation

tian-junwei
Copy link
Contributor

@tian-junwei tian-junwei commented Oct 10, 2018

Fixes #525 #497

Changes proposed in this pull request:
-添加spring容器关闭时任务主动关闭功能
(1)没有主动调用JobScheduler会导致spring容器销毁时,底层的quartz线程还在运行,没有关闭
(2)tomcat内存泄漏的问题也是由于quartz的线程没有主动关闭的问题

IAMTJW added 2 commits October 10, 2018 15:46
添加关闭服务接口
添加spring容器关闭时调用服务关闭解决spring启动失败或者tomcat停止服务定时任务线程无法关闭问题
@coveralls
Copy link

coveralls commented Oct 10, 2018

Coverage Status

Coverage increased (+0.02%) to 83.158% when pulling 2e6f98b on IAMTJW:dev into b022898 on elasticjob:dev.

@yunkaiOr2
Copy link

还没合并吗?这样的效率。我没法走pr来解决问题啊!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants