Skip to content

Conversation

lholmquist
Copy link
Contributor

see #160

Currently, the default value for concurrency is os.availableParallelism() - 1, which for most system is probably ok, since that function usually returns a value greater than 1. But for those systems that return a value of 1, the default would then be zero, which will cause an OUT_OF_RANGE error later on down the call chain.

This fix will make the default value 1 if the os.availableParallelism() - 1 is zero. This doesn't change anything if the user specifys a 1 for the concurrency flag.

Currently, the default value for concurrency is `os.availableParallelism() - 1`, which for most system is probably ok, since that function usually returns a value greater than 1.  But for those systems that return a value of 1, the default would then be zero, which will cause an OUT_OF_RANGE error later on down the call chain.

This fix will make the default value 1 if the `os.availableParallelism() - 1` is zero.  This doesn't change anything if the user specifys a 1 for the concurrency flag.
Copy link
Owner

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@lholmquist
Copy link
Contributor Author

hi, just wanted to see if this would be merged soon-ish :)

@mcollina mcollina merged commit f533b6d into mcollina:main Apr 29, 2025
9 checks passed
@mcollina
Copy link
Owner

will release asap

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants