Gallardot commented on code in PR #14972:
URL:
https://github.com/apache/dolphinscheduler/pull/14972#discussion_r1339867357
##########
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:
In fact, many Alert plugins construct an HTTP request and send it to the
destination. The differences lie only in the construction of HTTP headers,
HTTP body, HTTP method, and HTTP response parsing. Would it be possible to
establish an HTTP client with a built-in retry function, which all Alert
plugins could use?
--
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]