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

Class RetryState

slack_sdk/http_retry/state.py:4–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2
3
4class RetryState:
5 next_attempt_requested: bool
6 current_attempt: int # zero-origin
7 custom_values: Optional[Dict[str, Any]]
8
9 def __init__(
10 self,
11 *,
12 current_attempt: int = 0,
13 custom_values: Optional[Dict[str, Any]] = None,
14 ):
15 self.next_attempt_requested = False
16 self.current_attempt = current_attempt
17 self.custom_values = custom_values
18
19 def increment_current_attempt(self) -> int:
20 self.current_attempt += 1
21 return self.current_attempt

Callers 8

_perform_http_requestMethod · 0.90
_perform_http_requestMethod · 0.90
_perform_http_requestMethod · 0.90
_perform_http_requestMethod · 0.90
_request_with_sessionFunction · 0.90
_perform_http_requestMethod · 0.90
_perform_http_requestMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected