From 7bd120d19107b17a622692c83fe270b6836df66e Mon Sep 17 00:00:00 2001 From: xuxueli <931591021@qq.com> Date: Tue, 15 May 2018 22:06:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E7=BA=BF=E7=A8=8B=E5=81=9C?= =?UTF-8?q?=E6=AD=A2=E5=8F=98=E9=87=8F=E4=BF=AE=E9=A5=B0=E7=AC=A6=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doc/XXL-JOB官方文档.md | 1 + .../src/main/java/com/xxl/job/core/thread/JobThread.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/XXL-JOB官方文档.md b/doc/XXL-JOB官方文档.md index 75aa019e..9667cc97 100644 --- a/doc/XXL-JOB官方文档.md +++ b/doc/XXL-JOB官方文档.md @@ -1201,6 +1201,7 @@ Tips: 历史版本(V1.3.x)目前已经Release至稳定版本, 进入维护阶段 - 10、底层LocalCache组件兼容性优化,支持jdk、jdk10编译部署; - 11、任务回调结果优化,支持展示在Rolling log中,方便问题排查; - 12、脚本任务异常Log输出优化; +- 13、任务线程停止变量修饰符优化; ### TODO LIST diff --git a/xxl-job-core/src/main/java/com/xxl/job/core/thread/JobThread.java b/xxl-job-core/src/main/java/com/xxl/job/core/thread/JobThread.java index 93b36615..bc86a2c2 100644 --- a/xxl-job-core/src/main/java/com/xxl/job/core/thread/JobThread.java +++ b/xxl-job-core/src/main/java/com/xxl/job/core/thread/JobThread.java @@ -30,7 +30,7 @@ public class JobThread extends Thread{ private LinkedBlockingQueue triggerQueue; private ConcurrentHashSet triggerLogIdSet; // avoid repeat trigger for the same TRIGGER_LOG_ID - private boolean toStop = false; + private volatile boolean toStop = false; private String stopReason; private boolean running = false; // if running job