From 08135151893a3690777a3e6885822b01244234e9 Mon Sep 17 00:00:00 2001 From: knj Date: Fri, 25 Aug 2023 12:54:54 +0200 Subject: [PATCH 1/2] allow num of cpus as max_workers as in windows equivalent --- ci/run_evs_be_test.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ci/run_evs_be_test.py b/ci/run_evs_be_test.py index f7b705b0f4..edfc7f337d 100755 --- a/ci/run_evs_be_test.py +++ b/ci/run_evs_be_test.py @@ -31,6 +31,7 @@ import subprocess import pathlib import sys +import os import concurrent.futures from threading import Lock @@ -54,7 +55,7 @@ def main(): result_dict = dict() # run first part in parallel - with concurrent.futures.ThreadPoolExecutor(max_workers=4) as executor: + with concurrent.futures.ThreadPoolExecutor(max_workers=os.cpu_count()) as executor: executor.map( run_file, README_FILES_PARALLEL, BIN_PATHS, [result_dict] * len(README_FILES_PARALLEL) ) -- GitLab From c5f665350a597ba4fdccb7793d992dbafc33befd Mon Sep 17 00:00:00 2001 From: kiene Date: Fri, 25 Aug 2023 11:45:13 +0000 Subject: [PATCH 2/2] set max_workers to default value --- ci/run_evs_be_test.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ci/run_evs_be_test.py b/ci/run_evs_be_test.py index edfc7f337d..4c8ad1daee 100755 --- a/ci/run_evs_be_test.py +++ b/ci/run_evs_be_test.py @@ -31,7 +31,6 @@ import subprocess import pathlib import sys -import os import concurrent.futures from threading import Lock @@ -55,7 +54,7 @@ def main(): result_dict = dict() # run first part in parallel - with concurrent.futures.ThreadPoolExecutor(max_workers=os.cpu_count()) as executor: + with concurrent.futures.ThreadPoolExecutor() as executor: executor.map( run_file, README_FILES_PARALLEL, BIN_PATHS, [result_dict] * len(README_FILES_PARALLEL) ) -- GitLab