任务组获取方式fix

v1.3
xueli.xue 9 years ago
parent 5a55f996cf
commit f60cce5ba7

@ -102,8 +102,8 @@ public final class DynamicSchedulerUtil implements InitializingBean {
// fill job info // fill job info
public static void fillJobInfo(XxlJobInfo jobInfo) { public static void fillJobInfo(XxlJobInfo jobInfo) {
// TriggerKey : name + group // TriggerKey : name + group
TriggerKey triggerKey = TriggerKey.triggerKey(jobInfo.getJobName(), Scheduler.DEFAULT_GROUP); TriggerKey triggerKey = TriggerKey.triggerKey(jobInfo.getJobName(), jobInfo.getJobGroup());
JobKey jobKey = new JobKey(jobInfo.getJobName(), Scheduler.DEFAULT_GROUP); JobKey jobKey = new JobKey(jobInfo.getJobName(), jobInfo.getJobGroup());
try { try {
Trigger trigger = scheduler.getTrigger(triggerKey); Trigger trigger = scheduler.getTrigger(triggerKey);
JobDetail jobDetail = scheduler.getJobDetail(jobKey); JobDetail jobDetail = scheduler.getJobDetail(jobKey);

Loading…
Cancel
Save