Browse Source

Merge pull request #417 from lgcareer/branch-1.0.2

update deleteJob
pull/2/head
lgcareer 6 years ago committed by GitHub
parent
commit
f638d42888
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      escheduler-api/src/main/java/cn/escheduler/api/quartz/QuartzExecutors.java

2
escheduler-api/src/main/java/cn/escheduler/api/quartz/QuartzExecutors.java

@ -230,6 +230,8 @@ public class QuartzExecutors {
if(scheduler.checkExists(jobKey)){ if(scheduler.checkExists(jobKey)){
logger.info("try to delete job, job name: {}, job group name: {},", jobName, jobGroupName); logger.info("try to delete job, job name: {}, job group name: {},", jobName, jobGroupName);
return scheduler.deleteJob(jobKey); return scheduler.deleteJob(jobKey);
}else {
return true;
} }
} catch (SchedulerException e) { } catch (SchedulerException e) {

Loading…
Cancel
Save