Skip to content

Commit

Permalink
fix apache#3966 sub process doesnot send alert mail after process ins…
Browse files Browse the repository at this point in the history
…tance ending. (apache#3972)

Co-authored-by: baoliang <baoliang@analysys.com.cn>
  • Loading branch information
lenboo and baoliang authored Oct 22, 2020
1 parent ccc8ba1 commit 7a088b7
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

import org.apache.dolphinscheduler.common.enums.AlertType;
import org.apache.dolphinscheduler.common.enums.CommandType;
import org.apache.dolphinscheduler.common.enums.Flag;
import org.apache.dolphinscheduler.common.enums.ShowType;
import org.apache.dolphinscheduler.common.enums.WarningType;
import org.apache.dolphinscheduler.common.utils.DateUtils;
Expand Down Expand Up @@ -207,6 +208,9 @@ public void sendAlertWorkerToleranceFault(ProcessInstance processInstance, List<
*/
public void sendAlertProcessInstance(ProcessInstance processInstance,
List<TaskInstance> taskInstances){
if(Flag.YES == processInstance.getIsSubProcess()){
return;
}

boolean sendWarnning = false;
WarningType warningType = processInstance.getWarningType();
Expand Down

0 comments on commit 7a088b7

Please sign in to comment.