MCPcopy
hub / github.com/redis/redis-py / disconnect_connection_pools

Method disconnect_connection_pools

redis/cluster.py:983–990  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

981 pass
982
983 def disconnect_connection_pools(self):
984 for node in self.get_nodes():
985 if node.redis_connection:
986 try:
987 node.redis_connection.connection_pool.disconnect()
988 except OSError:
989 # Client was already disconnected. do nothing
990 pass
991
992 def on_connect(self, connection):
993 """

Callers 1

cluster_teardownFunction · 0.80

Calls 2

get_nodesMethod · 0.95
disconnectMethod · 0.45

Tested by 1

cluster_teardownFunction · 0.64