From d94848838a06e9fd0d8e8c6ee0b2b550ce659c93 Mon Sep 17 00:00:00 2001 From: Vishal Gupta Date: Thu, 26 Dec 2024 23:56:26 +0530 Subject: [PATCH] Add sub process wait logic (#1158) --- import-automation/executor/app/executor/import_executor.py | 1 + 1 file changed, 1 insertion(+) diff --git a/import-automation/executor/app/executor/import_executor.py b/import-automation/executor/app/executor/import_executor.py index 0b7b9bf01..d18054d43 100644 --- a/import-automation/executor/app/executor/import_executor.py +++ b/import-automation/executor/app/executor/import_executor.py @@ -564,6 +564,7 @@ def _run_with_timeout_async(args: List[str], stdout.append(line) logging.info(f'Process stdout: {line}') + process.wait() end_time = time.time() return_code = process.returncode