Skip to content

fix: child processes are not killed after timeout#232

Merged
vdayanand merged 7 commits intomasterfrom
v/usepgkill
Apr 14, 2025
Merged

fix: child processes are not killed after timeout#232
vdayanand merged 7 commits intomasterfrom
v/usepgkill

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