caishunfeng commented on code in PR #11774:
URL: https://github.com/apache/dolphinscheduler/pull/11774#discussion_r971902657


##########
dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/alert/ProcessAlertManager.java:
##########
@@ -217,13 +216,7 @@ public void sendAlertWorkerToleranceFault(ProcessInstance 
processInstance, List<
     public void sendAlertProcessInstance(ProcessInstance processInstance,
                                          List<TaskInstance> taskInstances,
                                          ProjectUser projectUser) {
-
-        if (!isNeedToSendWarning(processInstance)) {

Review Comment:
   Why remove this check?



##########
dolphinscheduler-dao/src/main/java/org/apache/dolphinscheduler/dao/AlertDao.java:
##########
@@ -81,9 +89,15 @@ public class AlertDao {
      * @return add alert result
      */
     public int addAlert(Alert alert) {
+        if (null == alert.getAlertGroupId() || 
NumberUtils.INTEGER_ZERO.equals(alert.getAlertGroupId())) {
+            return 0;

Review Comment:
   It's better to add warn log



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to