From aaa8d00f56bd3f8fe770678b2b5c9a49b27c1ddc Mon Sep 17 00:00:00 2001 From: vitor-aignosi Date: Mon, 20 Oct 2025 16:26:24 -0300 Subject: [PATCH] SIENTIAPDE-1312 Update OpcManager to set a timeout for the client connection - Added a timeout parameter to the Client initialization in OpcManager to enhance connection reliability and prevent indefinite blocking during connection attempts. --- ingestor/managers/opc_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ingestor/managers/opc_manager.py b/ingestor/managers/opc_manager.py index 09ee184..45bacd1 100644 --- a/ingestor/managers/opc_manager.py +++ b/ingestor/managers/opc_manager.py @@ -192,7 +192,7 @@ class OpcManager(BaseActivity): metrics.OPC_CONNECTIONS_TOTAL.labels(pod_id=self.pod_id, server_name=self.name).inc() try: - self.client = Client(self.url, watchdog_intervall=3600000) + self.client = Client(self.url, timeout=10, watchdog_intervall=3600000) assert self.client is not None # Informa ao mypy que client não é None self.client.name = self.pod_id