Skip to content

Conversation

tiran
Copy link
Contributor

@tiran tiran commented Apr 23, 2024

Changes

Which issue is resolved by this Pull Request:
Related to #957

Description of your changes:

Use default multiprocessing default context for ensure_server to unblock contributors. For some unknown reasons, spawn does not work.

ensure_server uses a multiprocessing Process to run a server process. The exit path must wait for the process to finish after p.terminate(). Otherwise the parent process might go away before the client can signal the parent that it is gone.

@tiran tiran requested a review from abhi1092 as a code owner April 23, 2024 14:26
@tiran tiran force-pushed the mp-join branch 2 times, most recently from 21a4c4c to e7ab33a Compare April 23, 2024 15:09
`ensure_server` uses a multiprocessing Process to run a server process.
The exit path must wait for the process to finish after `p.terminate()`.
Otherwise the parent process might go away before the client can signal
the parent that it is gone.

Fixes 0c2c459

Signed-off-by: Christian Heimes <cheimes@redhat.com>
@tiran tiran changed the title Join server process after termination Use default context for ensure_server Apr 23, 2024
@russellb russellb merged commit 12f75ee into instructlab:main Apr 23, 2024
@tiran tiran deleted the mp-join branch April 24, 2024 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants