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

Improve the process cleanup logic when running tests #616

Merged
merged 3 commits into from
Jun 9, 2024

Conversation

mryab
Copy link
Member

@mryab mryab commented Jun 9, 2024

The current cleanup_children function attempts to terminate all child processes, even those that have already stopped. This PR makes the cleanup more robust and avoids terminating dead processes by using psutil.wait_procs, which can distinguish dead and alive processes

@mryab mryab requested a review from justheuristic June 9, 2024 21:22
Copy link
Member

@justheuristic justheuristic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM as well. Thanks for finding the time to fix it!

@mryab mryab merged commit 51e5942 into master Jun 9, 2024
13 checks passed
@mryab mryab deleted the improve_process_cleanup branch June 9, 2024 21:39
mryab added a commit that referenced this pull request Oct 13, 2024
* Improve the process cleanup logic when running tests

* Add graceful shutdown in test_dht_experts

* Add graceful shutdown in test_fault_tolerance

(cherry picked from commit 51e5942)
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