Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix bug
  • Loading branch information
Fidget-Spinner committed Dec 16, 2024
commit db29d34b0710e4eceded138fb11528f610864cd7
2 changes: 1 addition & 1 deletion pyperformance/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def run_benchmarks(should_run, python, options):
executor_input = [(i+1, len(to_run), python, options, bench)
for i, bench in enumerate(to_run[1:])]
# It's fine to set a higher worker count, because this is IO-bound anyways.
with concurrent.futures.ProcessPoolExecutor(max_workers=len(to_run)-1) as executor:
with concurrent.futures.ProcessPoolExecutor(max_workers=max(1, len(to_run))) as executor:
for bench, venv_root, venv, bench_runid, cons_output in executor.map(setup_single_venv, executor_input):
if venv_root is not None:
venvs.add(venv_root)
Expand Down