SIENTIAPDE-1205
Update values.yaml and refactor shutdown methods for improved configuration and async handling - Changed replica count from 2 to 1 in values.yaml for deployment optimization. - Updated image tag from 0.4.3 to 0.4.5 in values.yaml for version consistency. - Refactored shutdown method in IngestorManager to use await server.shutdown() for better async operation. - Removed __del__ method in OpcManager to prevent blocking during cleanup.
This commit is contained in:
@@ -114,7 +114,7 @@ class IngestorManager(BaseActivity):
|
||||
|
||||
async def shutdown(self):
|
||||
for _server_name, server in self.opc_managers.items():
|
||||
await server.disconnect()
|
||||
await server.shutdown()
|
||||
self.data_manager.shutdown()
|
||||
|
||||
def __del__(self):
|
||||
|
||||
@@ -51,9 +51,6 @@ class OpcManager(BaseActivity):
|
||||
except Exception as e:
|
||||
self.logger.error(f"Error during cleanup: {e}")
|
||||
|
||||
def __del__(self):
|
||||
asyncio.run(self.shutdown())
|
||||
|
||||
async def set_security(self):
|
||||
"""
|
||||
Configures the security settings for the OPC UA client.
|
||||
|
||||
Reference in New Issue
Block a user