v1.4
xueli.xue 9 years ago
parent 628d421941
commit 39a0205e89

@ -57,7 +57,7 @@ public class JobMonitorHelper {
Set<String> emailSet = new HashSet<String>(Arrays.asList(info.getAlarmEmail().split(",")));
for (String email: emailSet) {
String title = "《调度监控报警-调度平台平台XXL-JOB》";
String title = "《调度监控报警-任务调度中心XXL-JOB》";
String content = MessageFormat.format("任务调度失败, 任务组:{0}, 任务描述:{1}.", info.getJobGroup(), info.getJobDesc());
MailUtil.sendMail(email, title, content, false, null);
}

@ -29,7 +29,7 @@ public class DemoJobHandler extends IJobHandler {
public JobHandleStatus execute(String... params) throws Exception {
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);
TimeUnit.SECONDS.sleep(2);
}

Loading…
Cancel
Save