MCPcopy Create free account
hub / github.com/slackapi/python-slack-sdk / can_retry

Method can_retry

slack_sdk/http_retry/handler.py:42–57  ·  view source on GitHub ↗
(
        self,
        *,
        state: RetryState,
        request: HttpRequest,
        response: Optional[HttpResponse] = None,
        error: Optional[Exception] = None,
    )

Source from the content-addressed store, hash-verified

40 self.interval_calculator = interval_calculator
41
42 def can_retry(
43 self,
44 *,
45 state: RetryState,
46 request: HttpRequest,
47 response: Optional[HttpResponse] = None,
48 error: Optional[Exception] = None,
49 ) -> bool:
50 if state.current_attempt >= self.max_retry_count:
51 return False
52 return self._can_retry(
53 state=state,
54 request=request,
55 response=response,
56 error=error,
57 )
58
59 def _can_retry(
60 self,

Callers 4

_perform_http_requestMethod · 0.80
_perform_http_requestMethod · 0.80
_perform_http_requestMethod · 0.80

Calls 1

_can_retryMethod · 0.95

Tested by

no test coverage detected