Commit 59ff5935 by huangfusuper

告警邮箱跟随

parent c2d34052
...@@ -107,8 +107,8 @@ public class RunRecordingAndJobTaskServiceImpl implements RunRecordingAndJobTask ...@@ -107,8 +107,8 @@ public class RunRecordingAndJobTaskServiceImpl implements RunRecordingAndJobTask
.flowStatus("2") .flowStatus("2")
.flowTimeout(virFlow.getFlowTimeout()) .flowTimeout(virFlow.getFlowTimeout())
.dispatchIp(InetAddress.getLocalHost().getHostAddress()) .dispatchIp(InetAddress.getLocalHost().getHostAddress())
.alarmEmail(virFlow.getAlarmEmail()) .alarmEmail(mainRecording.getAlarmEmail())
.alarmlAction(virFlow.getAlarmlAction()) .alarmlAction(mainRecording.getAlarmlAction())
.priority(virFlow.getPriority()) .priority(virFlow.getPriority())
.triggerTime(equals?jobTask.getTriggerTime():virFlow.getTriggerNextTime()) .triggerTime(equals?jobTask.getTriggerTime():virFlow.getTriggerNextTime())
.principal(virFlow.getPrincipal()) .principal(virFlow.getPrincipal())
......
...@@ -96,6 +96,7 @@ public class TaskAndLogServerImpl implements TaskAndLogServer { ...@@ -96,6 +96,7 @@ public class TaskAndLogServerImpl implements TaskAndLogServer {
jobTaskRunLogService.saveJobTaskRunLog(jobTaskRunLog); jobTaskRunLogService.saveJobTaskRunLog(jobTaskRunLog);
if (isInner) { if (isInner) {
RunRecording mainRecording = runRecordingService.findRunRecordingByFlowIdAndRunId(jobTask.getFlowId(), jobTask.getRunId());
log.error("------该节点是虚节点,先将该节点对应的实例保存--------"); log.error("------该节点是虚节点,先将该节点对应的实例保存--------");
//查询该节点对应的工作流 //查询该节点对应的工作流
Integer mapFlowId = jobTask.getMapFlowId(); Integer mapFlowId = jobTask.getMapFlowId();
...@@ -110,8 +111,8 @@ public class TaskAndLogServerImpl implements TaskAndLogServer { ...@@ -110,8 +111,8 @@ public class TaskAndLogServerImpl implements TaskAndLogServer {
.flowRunResult("2") .flowRunResult("2")
.flowTimeout(virFlow.getFlowTimeout()) .flowTimeout(virFlow.getFlowTimeout())
.dispatchIp(InetAddress.getLocalHost().getHostAddress()) .dispatchIp(InetAddress.getLocalHost().getHostAddress())
.alarmEmail(virFlow.getAlarmEmail()) .alarmEmail(mainRecording.getAlarmEmail())
.alarmlAction(virFlow.getAlarmlAction()) .alarmlAction(mainRecording.getAlarmlAction())
.priority(virFlow.getPriority()) .priority(virFlow.getPriority())
.triggerTime(jobTask.getTriggerTime()) .triggerTime(jobTask.getTriggerTime())
.principal(virFlow.getPrincipal()) .principal(virFlow.getPrincipal())
......
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 to comment