Skip to content

Commit 2b8da43

Browse files
DOC-5287 added note about retries in connection page
1 parent 24e5b8f commit 2b8da43

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

content/develop/clients/redis-py/connect.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,3 +242,13 @@ r3.close()
242242

243243
pool.close()
244244
```
245+
246+
## Retrying connections
247+
248+
A connection will sometimes fail because of a transient problem, such as a
249+
network outage or a server that is temporarily unavailable. In these cases,
250+
retrying the connection after a short delay will usually succeed. `redis-py` uses
251+
a simple retry strategy by default, but there are various ways you can customize
252+
this behavior to suit your use case. See
253+
[Retries]({{< relref "/develop/clients/redis-py/produsage#retries" >}})
254+
for more information about custom retry strategies, with example code.

0 commit comments

Comments
 (0)