Skip to content

Commit b99fd95

Browse files
committed
Switch to ProcessPoolExecutor
Sphinx html build writing seems not to be thread-safe
1 parent 77acb8b commit b99fd95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

generate.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# ///
1313
import subprocess
1414
from collections.abc import Iterator
15-
from concurrent.futures import ThreadPoolExecutor
15+
from concurrent.futures import ProcessPoolExecutor
1616
from dataclasses import dataclass
1717
from datetime import datetime, timezone
1818
from itertools import repeat
@@ -50,7 +50,7 @@ def get_completion_progress() -> Iterator['LanguageProjectData']:
5050
subprocess.run(['make', '-C', cpython_dir / 'Doc', 'venv'], check=True)
5151
subprocess.run(['make', '-C', cpython_dir / 'Doc', 'gettext'], check=True)
5252
languages_built = dict(build_status.get_languages())
53-
with ThreadPoolExecutor() as executor:
53+
with ProcessPoolExecutor() as executor:
5454
return executor.map(
5555
get_data,
5656
*zip(*get_languages_and_repos(devguide_dir)),

0 commit comments

Comments
 (0)