From ac86231d2e3cd11b76e8469654e973510d280859 Mon Sep 17 00:00:00 2001 From: xuxueli <931591021@qq.com> Date: Thu, 18 Jul 2019 21:57:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E8=A7=A6=E5=8F=91=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E4=BC=98=E5=8C=96=EF=BC=8C=E5=B8=B8=E8=A7=841s?= =?UTF-8?q?=E9=A2=84=E5=8A=A0=E8=BD=BD=E4=B8=80=E6=AC=A1=EF=BC=8C=E9=A2=84?= =?UTF-8?q?=E5=8A=A0=E8=BD=BD=E8=BD=AE=E7=A9=BA=E6=97=B6=E4=B8=BB=E5=8A=A8?= =?UTF-8?q?=E4=BC=91=E7=9C=A04s=EF=BC=8C=E9=99=8D=E4=BD=8E=E5=8A=A0?= =?UTF-8?q?=E8=BD=BD=E9=A2=91=E7=8E=87=E4=BB=A5=E5=8F=8A=E5=AF=B9DB?= =?UTF-8?q?=E5=8E=8B=E5=8A=9B=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/xxl/job/admin/core/thread/JobScheduleHelper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xxl-job-admin/src/main/java/com/xxl/job/admin/core/thread/JobScheduleHelper.java b/xxl-job-admin/src/main/java/com/xxl/job/admin/core/thread/JobScheduleHelper.java index bd9a5128..bc1e82ba 100644 --- a/xxl-job-admin/src/main/java/com/xxl/job/admin/core/thread/JobScheduleHelper.java +++ b/xxl-job-admin/src/main/java/com/xxl/job/admin/core/thread/JobScheduleHelper.java @@ -194,8 +194,8 @@ public class JobScheduleHelper { // Wait seconds, align second if (cost < 1000) { // scan-overtime, not wait try { - // pre-read success, exist job in 5s, wait 1s; - // pre-read fail, no exist job in 5s, wait 1s + // pre-read success, exist job in pre-read period, wait 1s; + // pre-read fail, no exist job in pre-read period, wait 4s TimeUnit.MILLISECONDS.sleep((preReadSuc?1000:4000) - System.currentTimeMillis()%1000); } catch (InterruptedException e) { if (!scheduleThreadToStop) {