MCPcopy Create free account
hub / github.com/apache/cassandra-python-driver / __del__

Method __del__

cassandra/cluster.py:3271–3278  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3269 self.shutdown()
3270
3271 def __del__(self):
3272 try:
3273 # Ensure all connections are closed, in case the Session object is deleted by the GC
3274 self.shutdown()
3275 except:
3276 # Ignore all errors. Shutdown errors can be caught by the user
3277 # when cluster.shutdown() is called explicitly.
3278 pass
3279
3280 def add_or_renew_pool(self, host, is_host_addition):
3281 """

Callers

nothing calls this directly

Calls 1

shutdownMethod · 0.95

Tested by

no test coverage detected