SIENTIAPDE-1325
Update IngestorManager to use asynchronous methods for checking OPC server cycles and listening status
This commit is contained in:
@@ -298,9 +298,9 @@ class IngestorManager(SientiaMonitoring):
|
||||
"""
|
||||
to_disconnect: list[str] = []
|
||||
for server, opc_manager in self.opc_managers.items():
|
||||
opc_manager.check_cycles()
|
||||
await opc_manager.check_cycles()
|
||||
|
||||
is_lost = opc_manager.check_opc_listenning()
|
||||
is_lost = await opc_manager.check_opc_listenning()
|
||||
if is_lost:
|
||||
self.logger.warning(f'OPC server {server} is lost. Server will be disconnected.')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user