|
10 | 10 | importhumanize |
11 | 11 | fromdateutilimporttz |
12 | 12 | fromslack_sdkimportWebClient |
| 13 | +fromslack_sdk.http_retryimportall_builtin_retry_handlers |
13 | 14 | fromslack_sdk.errorsimportSlackApiError |
14 | 15 |
|
15 | 16 | fromrobusta.core.model.base_paramsimportAIInvestigateParams,ResourceInfo |
@@ -68,7 +69,7 @@ def __init__(self, slack_token: str, account_id: str, cluster_name: str, signing |
68 | 69 | exceptExceptionase: |
69 | 70 | logging.exception(f"Failed to use custom certificate.{e}") |
70 | 71 |
|
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()) |
72 | 73 | self.signing_key=signing_key |
73 | 74 | self.account_id=account_id |
74 | 75 | self.cluster_name=cluster_name |
|