From fd6f34fc3a5a6916440fac6be5708d433bcf6424 Mon Sep 17 00:00:00 2001 From: xuxueli <931591021@qq.com> Date: Fri, 22 Feb 2019 14:53:33 +0800 Subject: [PATCH] update document --- .../com/xxl/job/core/executor/XxlJobExecutor.java | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/xxl-job-core/src/main/java/com/xxl/job/core/executor/XxlJobExecutor.java b/xxl-job-core/src/main/java/com/xxl/job/core/executor/XxlJobExecutor.java index 74063986..e58e102a 100644 --- a/xxl-job-core/src/main/java/com/xxl/job/core/executor/XxlJobExecutor.java +++ b/xxl-job-core/src/main/java/com/xxl/job/core/executor/XxlJobExecutor.java @@ -92,12 +92,7 @@ public class XxlJobExecutor { } jobThreadRepository.clear(); } - if(jobHandlerRepository.size() >0 ){ - for (Map.Entry item: jobHandlerRepository.entrySet()){ - removeJobHandler(item.getKey(), "web container destroy and kill the jod handler"); - } - jobHandlerRepository.clear(); - } + jobHandlerRepository.clear(); // destory JobLogFileCleanThread @@ -110,13 +105,6 @@ public class XxlJobExecutor { stopRpcProvider(); } - private void removeJobHandler(String handlerId, String removeOldReason){ - IJobHandler oldJobHandler = jobHandlerRepository.remove(handlerId); - if (oldJobHandler != null) { - oldJobHandler.destroy(); - } - } - // ---------------------- admin-client (rpc invoker) ---------------------- private static List adminBizList;