Commit 39a0205e by xueli.xue

coding

parent 628d4219
...@@ -57,7 +57,7 @@ public class JobMonitorHelper { ...@@ -57,7 +57,7 @@ public class JobMonitorHelper {
Set<String> emailSet = new HashSet<String>(Arrays.asList(info.getAlarmEmail().split(","))); Set<String> emailSet = new HashSet<String>(Arrays.asList(info.getAlarmEmail().split(",")));
for (String email: emailSet) { for (String email: emailSet) {
String title = "《调度监控报警-调度平台平台XXL-JOB》"; String title = "《调度监控报警-任务调度中心XXL-JOB》";
String content = MessageFormat.format("任务调度失败, 任务组:{0}, 任务描述:{1}.", info.getJobGroup(), info.getJobDesc()); String content = MessageFormat.format("任务调度失败, 任务组:{0}, 任务描述:{1}.", info.getJobGroup(), info.getJobDesc());
MailUtil.sendMail(email, title, content, false, null); MailUtil.sendMail(email, title, content, false, null);
} }
......
...@@ -29,7 +29,7 @@ public class DemoJobHandler extends IJobHandler { ...@@ -29,7 +29,7 @@ public class DemoJobHandler extends IJobHandler {
public JobHandleStatus execute(String... params) throws Exception { public JobHandleStatus execute(String... params) throws Exception {
logger.info("XXL-JOB, Hello World."); logger.info("XXL-JOB, Hello World.");
for (int i = 0; i < 10; i++) { for (int i = 0; i < 2; i++) {
logger.info("beat at:{}", i); logger.info("beat at:{}", i);
TimeUnit.SECONDS.sleep(2); TimeUnit.SECONDS.sleep(2);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment