Changed max workers on windows to 60 (#1912)

This commit is contained in:
Troy Murray 2021-01-09 07:26:42 +11:00 committed by GitHub
parent ba3648d984
commit a81702ce02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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):