Skip to content

fix: child processes are not killed after timeout #232

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

Merged
merged 7 commits into from
Apr 14, 2025
Merged

Conversation

vdayanand
Copy link
Collaborator

@vdayanand vdayanand commented Apr 11, 2025

Currently, children processes (spawn by packages) don't kill after timeout. This PR uses process group to kill them.
Alternative to #231

@vdayanand vdayanand marked this pull request as draft April 11, 2025 09:31
@vdayanand vdayanand marked this pull request as ready for review April 11, 2025 14:59
@vdayanand vdayanand requested a review from pfitzseb April 11, 2025 15:44
Copy link
Member

@pfitzseb pfitzseb left a comment

Choose a reason for hiding this comment

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

Generally LGTM.

Any chance for a test that spawns a child process inside of a run_with_timeout?

@vdayanand vdayanand requested a review from pfitzseb April 14, 2025 10:50
@vdayanand vdayanand merged commit 7948391 into master Apr 14, 2025
3 checks passed
@vdayanand vdayanand deleted the v/usepgkill branch April 14, 2025 12:11
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