From 778cc6faaa7bf68687e9d686d7a2810a14ef57c2 Mon Sep 17 00:00:00 2001 From: Asaf Cohen Date: Tue, 5 Nov 2024 16:28:50 +0200 Subject: [PATCH] fix _pipe_log_stream not running consistently for monitored subprocess --- packages/opal-client/opal_client/engine/runner.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/opal-client/opal_client/engine/runner.py b/packages/opal-client/opal_client/engine/runner.py index 9cca62c28..762472232 100644 --- a/packages/opal-client/opal_client/engine/runner.py +++ b/packages/opal-client/opal_client/engine/runner.py @@ -136,8 +136,8 @@ async def _pipe_logs_stream(stream: asyncio.StreamReader): line = b"" - await asyncio.wait( - [ + await asyncio.gather( + *[ _pipe_logs_stream(self._process.stdout), _pipe_logs_stream(self._process.stderr), ]