SIENTIAPDE-1325

Update IngestorManager to use asynchronous methods for checking OPC server cycles and listening status
This commit is contained in:
vitor-aignosi
2025-11-06 16:40:45 -03:00
parent 254be06004
commit c4f8fe95a8

View File

@@ -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.')