-
Notifications
You must be signed in to change notification settings - Fork 15
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
Make site generation use multiprocessing #1709
base: 0.4.x
Are you sure you want to change the base?
Conversation
429b33f
to
5925ef9
Compare
@@ -81,6 +82,13 @@ async def acquire(self, *, wait: bool = True) -> bool: | |||
def release(self) -> None: | |||
self._lock.release() | |||
|
|||
@classmethod | |||
def multiprocessing(cls) -> Self: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test this
ce27783
to
cb25ac4
Compare
3a62124
to
3d18899
Compare
557db42
to
ffc8d13
Compare
betty/generate/pool.py
Outdated
|
||
class _GenerationProcessPool: | ||
""" | ||
Set up a worker process, before the worker starts performing tasks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Incorrect doc?
5c0b866
to
b66f670
Compare
b66f670
to
1b901b3
Compare
7e4347b
to
a55f201
Compare
88f3376
to
7edea59
Compare
7edea59
to
9bb6f1f
Compare
@@ -41,9 +41,6 @@ class EntityCollection(Generic[_TargetT], ABC): | |||
|
|||
__slots__ = () | |||
|
|||
def __init__(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clean this and similar initializers in a separate PR
This fixes #1516
To do
betty.typing.processsafe()
which impliesbetty.typing.threadsafe()