Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable parallel reading if requested, even if there are few documents #12796

Merged
merged 4 commits into from
Sep 18, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sphinx/builders/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ def read(self) -> list[str]:
self.events.emit('env-before-read-docs', self.env, docnames)

# check if we should do parallel or serial read
if parallel_available and len(docnames) > 5 and self.app.parallel > 1:
if parallel_available and len(docnames) > 1 and self.app.parallel > 1:
mgeier marked this conversation as resolved.
Show resolved Hide resolved
par_ok = self.app.is_parallel_allowed('read')
else:
par_ok = False
Expand Down