You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Creating your own ones is also quite simple. Defining a new class that inherits ``slack_sdk.http_retry.RetryHandler`` (``AsyncRetryHandler`` for asyncio apps) and implements required methods (internals of ``can_retry`` / ``prepare_for_next_retry``). Check the built-in ones' source code for learning how to properly implement.
Creating your own ones is also quite simple. Defining a new class that inherits ``slack_sdk.http_retry.RetryHandler`` (``AsyncRetryHandler`` for asyncio apps) and implements required methods (internals of ``can_retry`` / ``prepare_for_next_retry``). Check the built-in ones' source code for learning how to properly implement.
Creating your own ones is also quite simple. Defining a new class that inherits ``slack_sdk.http_retry.RetryHandler`` (``AsyncRetryHandler`` for asyncio apps) and implements required methods (internals of ``can_retry`` / ``prepare_for_next_retry``). Check the built-in ones' source code for learning how to properly implement.
Creating your own ones is also quite simple. Defining a new class that inherits ``slack_sdk.http_retry.RetryHandler`` (``AsyncRetryHandler`` for asyncio apps) and implements required methods (internals of ``can_retry`` / ``prepare_for_next_retry``). Check the built-in ones' source code for learning how to properly implement.
Copy file name to clipboardExpand all lines: docs/audit-logs/index.html
+4-7Lines changed: 4 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -254,17 +254,14 @@ <h2>RetryHandler<a class="headerlink" href="#retryhandler" title="Permalink to t
254
254
<p>To use other retry handlers, you can pass a list of <codeclass="docutils literal notranslate"><spanclass="pre">RetryHandler</span></code> to the client constructor. For instance, you can add the built-in <codeclass="docutils literal notranslate"><spanclass="pre">RateLimitErrorRetryHandler</span></code> this way:</p>
<p>Creating your own ones is also quite simple. Defining a new class that inherits <codeclass="docutils literal notranslate"><spanclass="pre">slack_sdk.http_retry.RetryHandler</span></code> (<codeclass="docutils literal notranslate"><spanclass="pre">AsyncRetryHandler</span></code> for asyncio apps) and implements required methods (internals of <codeclass="docutils literal notranslate"><spanclass="pre">can_retry</span></code> / <codeclass="docutils literal notranslate"><spanclass="pre">prepare_for_next_retry</span></code>). Check the built-in ones’ source code for learning how to properly implement.</p>
Copy file name to clipboardExpand all lines: docs/scim/index.html
+4-7Lines changed: 4 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -301,17 +301,14 @@ <h2>RetryHandler<a class="headerlink" href="#retryhandler" title="Permalink to t
301
301
<p>To use other retry handlers, you can pass a list of <codeclass="docutils literal notranslate"><spanclass="pre">RetryHandler</span></code> to the client constructor. For instance, you can add the built-in <codeclass="docutils literal notranslate"><spanclass="pre">RateLimitErrorRetryHandler</span></code> this way:</p>
<p>Creating your own ones is also quite simple. Defining a new class that inherits <codeclass="docutils literal notranslate"><spanclass="pre">slack_sdk.http_retry.RetryHandler</span></code> (<codeclass="docutils literal notranslate"><spanclass="pre">AsyncRetryHandler</span></code> for asyncio apps) and implements required methods (internals of <codeclass="docutils literal notranslate"><spanclass="pre">can_retry</span></code> / <codeclass="docutils literal notranslate"><spanclass="pre">prepare_for_next_retry</span></code>). Check the built-in ones’ source code for learning how to properly implement.</p>
Copy file name to clipboardExpand all lines: docs/web/index.html
+4-7Lines changed: 4 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -748,17 +748,14 @@ <h2>RetryHandler<a class="headerlink" href="#retryhandler" title="Permalink to t
748
748
<p>To use other retry handlers, you can pass a list of <codeclass="docutils literal notranslate"><spanclass="pre">RetryHandler</span></code> to the client constructor. For instance, you can add the built-in <codeclass="docutils literal notranslate"><spanclass="pre">RateLimitErrorRetryHandler</span></code> this way:</p>
<p>Creating your own ones is also quite simple. Defining a new class that inherits <codeclass="docutils literal notranslate"><spanclass="pre">slack_sdk.http_retry.RetryHandler</span></code> (<codeclass="docutils literal notranslate"><spanclass="pre">AsyncRetryHandler</span></code> for asyncio apps) and implements required methods (internals of <codeclass="docutils literal notranslate"><spanclass="pre">can_retry</span></code> / <codeclass="docutils literal notranslate"><spanclass="pre">prepare_for_next_retry</span></code>). Check the built-in ones’ source code for learning how to properly implement.</p>
<h2>RetryHandler<aclass="headerlink" href="#retryhandler" title="Permalink to this headline">¶</a></h2>
311
311
<p>With the default settings, only <codeclass="docutils literal notranslate"><spanclass="pre">ConnectionErrorRetryHandler</span></code> with its default configuration (=only one retry in the manner of <aclass="reference external" href="https://aws.amazon.com/blogs/architecture/exponential-backoff-and-jitter/">exponential backoff and jitter</a> is enabled. The retry handler retries if an API client encounters a connectivity-related failure (e.g., Connection reset by peer).</p>
312
312
<p>To use other retry handlers, you can pass a list of <codeclass="docutils literal notranslate"><spanclass="pre">RetryHandler</span></code> to the client constructor. For instance, you can add the built-in <codeclass="docutils literal notranslate"><spanclass="pre">RateLimitErrorRetryHandler</span></code> this way:</p>
<p>Creating your own ones is also quite simple. Defining a new class that inherits <codeclass="docutils literal notranslate"><spanclass="pre">slack_sdk.http_retry.RetryHandler</span></code> (<codeclass="docutils literal notranslate"><spanclass="pre">AsyncRetryHandler</span></code> for asyncio apps) and implements required methods (internals of <codeclass="docutils literal notranslate"><spanclass="pre">can_retry</span></code> / <codeclass="docutils literal notranslate"><spanclass="pre">prepare_for_next_retry</span></code>). Check the built-in ones’ source code for learning how to properly implement.</p>
0 commit comments