Changed max workers on windows to 60 (#1912)
This commit is contained in:
parent
ba3648d984
commit
a81702ce02
@ -741,7 +741,7 @@ def reformat_many(
|
||||
worker_count = os.cpu_count()
|
||||
if sys.platform == "win32":
|
||||
# Work around https://bugs.python.org/issue26903
|
||||
worker_count = min(worker_count, 61)
|
||||
worker_count = min(worker_count, 60)
|
||||
try:
|
||||
executor = ProcessPoolExecutor(max_workers=worker_count)
|
||||
except (ImportError, OSError):
|
||||
|
Loading…
Reference in New Issue
Block a user