You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by "qingwli (via GitHub)" <gi...@apache.org> on 2023/10/10 06:19:46 UTC

Re: [PR] [Improvement][Alert] Webex and PagerDuty Alert plugin add retry logic [dolphinscheduler]

qingwli commented on code in PR #14972:
URL: https://github.com/apache/dolphinscheduler/pull/14972#discussion_r1351594067


##########
dolphinscheduler-alert/dolphinscheduler-alert-plugins/dolphinscheduler-alert-webexteams/src/main/java/org/apache/dolphinscheduler/plugin/alert/webexteams/WebexTeamsSender.java:
##########
@@ -67,16 +68,28 @@ public AlertResult sendWebexTeamsAlter(AlertData alertData) {
         alertResult.setStatus("false");
         alertResult.setMessage("send webex teams alert fail.");
 
-        try {
-            send(alertResult, alertData);
-        } catch (Exception e) {
-            log.info("send webex teams alert exception : {}", e.getMessage());
+        for (int i = 0; i < AlertConstants.RETRY_TIMES; i++) {

Review Comment:
   Good question, I will update this logic
   



-- 
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: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org