fix(ingestor): Remove __del__ methods for async shutdown
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import asyncio
|
||||
import traceback
|
||||
from copy import deepcopy
|
||||
|
||||
@@ -188,9 +187,6 @@ class IngestorManager(SientiaMonitoring):
|
||||
await server.shutdown()
|
||||
self.data_manager.shutdown()
|
||||
|
||||
def __del__(self):
|
||||
asyncio.run(self.shutdown())
|
||||
|
||||
async def remove_server(self, server: str):
|
||||
"""
|
||||
Removes an OPC server from the ingestor.
|
||||
|
||||
@@ -112,9 +112,6 @@ class OpcManager(SientiaMonitoring):
|
||||
f'nodes={self.nodes}, subscriptions={self.subscriptions}'
|
||||
)
|
||||
|
||||
def __del__(self):
|
||||
asyncio.run(self.shutdown())
|
||||
|
||||
async def shutdown(self):
|
||||
"""
|
||||
Comprehensive cleanup method for graceful shutdown.
|
||||
|
||||
Reference in New Issue
Block a user