From 17d986521f5b6ab290afc65c21ac35bbb023995b Mon Sep 17 00:00:00 2001 From: xuxueli <931591021@qq.com> Date: Fri, 24 May 2019 10:38:43 +0800 Subject: [PATCH] update document --- .../com/xxl/job/admin/service/impl/XxlJobServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xxl-job-admin/src/main/java/com/xxl/job/admin/service/impl/XxlJobServiceImpl.java b/xxl-job-admin/src/main/java/com/xxl/job/admin/service/impl/XxlJobServiceImpl.java index 469583cb..77cc883e 100644 --- a/xxl-job-admin/src/main/java/com/xxl/job/admin/service/impl/XxlJobServiceImpl.java +++ b/xxl-job-admin/src/main/java/com/xxl/job/admin/service/impl/XxlJobServiceImpl.java @@ -190,8 +190,8 @@ public class XxlJobServiceImpl implements XxlJobService { } // next trigger time (10s后生效,避开预读周期) - long nextTriggerTime = 0; - if (exists_jobInfo.getTriggerStatus() == 1) { + long nextTriggerTime = exists_jobInfo.getTriggerNextTime(); + if (exists_jobInfo.getTriggerStatus() == 1 && !jobInfo.getJobCron().equals(exists_jobInfo.getJobCron()) ) { try { nextTriggerTime = new CronExpression(jobInfo.getJobCron()).getNextValidTimeAfter(new Date(System.currentTimeMillis() + 10000)).getTime(); } catch (ParseException e) {