From 128ebdf4fe6ce9bf13e476f2ba8aa4b9cb6d98e5 Mon Sep 17 00:00:00 2001 From: xjules Date: Fri, 20 Dec 2024 10:38:30 +0100 Subject: [PATCH] Yield with sleep(0) --- src/_ert/forward_model_runner/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/_ert/forward_model_runner/client.py b/src/_ert/forward_model_runner/client.py index f64e86232dd..62fdd4056fb 100644 --- a/src/_ert/forward_model_runner/client.py +++ b/src/_ert/forward_model_runner/client.py @@ -104,7 +104,7 @@ async def _receiver(self) -> None: logger.debug( f"{self.dealer_id} connection to evaluator went down, reconnecting: {exc}" ) - await asyncio.sleep(1) + await asyncio.sleep(0) self.socket.connect(self.url) async def send(self, message: str | bytes, retries: int | None = None) -> None: