From 31db502356d1833c43cb7c194fa0358f69f39d69 Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Mon, 24 Mar 2025 15:46:01 -0700 Subject: [PATCH] upper bound on parallel queries --- tools/lib/logreader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/lib/logreader.py b/tools/lib/logreader.py index 4c62c5627a..290171d363 100755 --- a/tools/lib/logreader.py +++ b/tools/lib/logreader.py @@ -205,7 +205,7 @@ def get_invalid_files(files): if not files: return - with ThreadPoolExecutor() as executor: + with ThreadPoolExecutor(max_workers=32) as executor: future_to_file = {executor.submit(file_exists, file): file for file in files} for future in as_completed(future_to_file): file = future_to_file[future]