|
@@ -1,5 +1,6 @@
|
1
|
1
|
package com.xxl.job.admin.core.thread;
|
2
|
2
|
|
|
3
|
+import com.xxl.job.admin.core.constant.Constants;
|
3
|
4
|
import com.xxl.job.admin.core.model.XxlJobInfo;
|
4
|
5
|
import com.xxl.job.admin.core.model.XxlJobLog;
|
5
|
6
|
import com.xxl.job.admin.core.util.DynamicSchedulerUtil;
|
|
@@ -58,7 +59,8 @@ public class JobMonitorHelper {
|
58
|
59
|
Set<String> emailSet = new HashSet<String>(Arrays.asList(info.getAlarmEmail().split(",")));
|
59
|
60
|
for (String email: emailSet) {
|
60
|
61
|
String title = "《调度监控报警-任务调度中心XXL-JOB》";
|
61
|
|
- String content = MessageFormat.format("任务调度失败, 任务组:{0}, 任务描述:{1}.", info.getJobGroup(), info.getJobDesc());
|
|
62
|
+ String content = MessageFormat.format("任务调度失败, 任务组:{0}, 任务描述:{1}.",
|
|
63
|
+ Constants.JobGroupEnum.match(info.getJobGroup()).getDesc(), info.getJobDesc());
|
62
|
64
|
MailUtil.sendMail(email, title, content, false, null);
|
63
|
65
|
}
|
64
|
66
|
}
|