Skip to content

Commit

Permalink
fix: Properly shutdown control connection and scheduler in CassandraO…
Browse files Browse the repository at this point in the history
…nlineStore
  • Loading branch information
Bhargav Dodla committed Jan 22, 2025
1 parent 916591b commit c887250
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -455,8 +455,11 @@ def __del__(self):
print(
f"{self._cluster.client_id}: Del Connection ID: {connection.get_connections()}"
)
# self._cluster.control_connection.shutdown()
self._cluster.shutdown()
self._cluster.control_connection.shutdown()
if not self._cluster.scheduler.is_shutdown:
print(f"{self._cluster.client_id}: Shutting down scheduler")
self._cluster.scheduler.shutdown()
# self._cluster.shutdown()

else:
print(f"{self._cluster.client_id}: Cluster is not active")
Expand Down

0 comments on commit c887250

Please sign in to comment.