Skip to content

Commit

Permalink
Reinitialize the cluster in case of TimeoutError inside a pipeline (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
mbilski authored Feb 17, 2025
1 parent 746653a commit 60f24a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redis/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -2185,7 +2185,7 @@ def _send_cluster_commands(
redis_node = self.get_redis_connection(node)
try:
connection = get_connection(redis_node, c.args)
except ConnectionError:
except (ConnectionError, TimeoutError):
for n in nodes.values():
n.connection_pool.release(n.connection)
# Connection retries are being handled in the node's
Expand Down

0 comments on commit 60f24a9

Please sign in to comment.