Skip to content

clamp max_workers to at least 1 for single-cpu systems#3146

Open
knQzx wants to merge 1 commit intoNVIDIA:mainfrom
knQzx:fix-single-cpu-worker-count
Open

clamp max_workers to at least 1 for single-cpu systems#3146
knQzx wants to merge 1 commit intoNVIDIA:mainfrom
knQzx:fix-single-cpu-worker-count

Conversation

@knQzx
Copy link
Copy Markdown

@knQzx knQzx commented Apr 5, 2026

summary

  • clamp max_workers to at least 1 so ThreadPoolExecutor doesn't crash on single-cpu systems

test plan

  • verified fix prevents ValueError on systems where os.cpu_count() returns 1

fixes #3139

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 5, 2026

This PR has been labeled inactive-30d due to no recent activity in the past 30 days. Please close this PR if it is no longer required. Otherwise, please respond with a comment indicating any updates. This PR will be labeled inactive-90d if there is no activity in the next 60 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Wrong worker computation for single-CPU systems

1 participant