Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd062122

Browse files
authored
Add slack retries (#1694)
1 parent4b6c2d0 commitd062122

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎src/robusta/integrations/slack/sender.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
importhumanize
1111
fromdateutilimporttz
1212
fromslack_sdkimportWebClient
13+
fromslack_sdk.http_retryimportall_builtin_retry_handlers
1314
fromslack_sdk.errorsimportSlackApiError
1415

1516
fromrobusta.core.model.base_paramsimportAIInvestigateParams,ResourceInfo
@@ -68,7 +69,7 @@ def __init__(self, slack_token: str, account_id: str, cluster_name: str, signing
6869
exceptExceptionase:
6970
logging.exception(f"Failed to use custom certificate.{e}")
7071

71-
self.slack_client=WebClient(token=slack_token,ssl=ssl_context,timeout=SLACK_REQUEST_TIMEOUT)
72+
self.slack_client=WebClient(token=slack_token,ssl=ssl_context,timeout=SLACK_REQUEST_TIMEOUT,retry_handlers=all_builtin_retry_handlers())
7273
self.signing_key=signing_key
7374
self.account_id=account_id
7475
self.cluster_name=cluster_name

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp