Skip to content

Conversation

@CurroRodriguez
Copy link
Contributor

Summary

This change modifies the SpawnExecuteTask to leverage psutil, if available, to not only terminate the spawn process at the end, but also all the child processes. If psutil is not available, the task resorts to the previous behavior and only kills the spawn process. This may result on dangling process in some instances.

One of the reasons for this change is to be able to launch a web application behind a server using npm. NPM is notorious for leaving child processes behind if they are not explicitly killed. This implementation, provided psutil is installed, will ensure all processes are terminated.

@github-actions
Copy link

github-actions bot commented Apr 7, 2025

Code Coverage

Package Line Rate Health
src.bolt 89%
src.bolt.tasks 87%
src.bolt.utils 81%
Summary 87% (647 / 741)

Minimum allowed line rate is 75%

@github-actions
Copy link

github-actions bot commented Apr 7, 2025

Code Coverage

Package Line Rate Health
src.bolt 89%
src.bolt.tasks 86%
src.bolt.utils 81%
Summary 87% (647 / 742)

Minimum allowed line rate is 75%

1 similar comment
@github-actions
Copy link

github-actions bot commented Apr 7, 2025

Code Coverage

Package Line Rate Health
src.bolt 89%
src.bolt.tasks 86%
src.bolt.utils 81%
Summary 87% (647 / 742)

Minimum allowed line rate is 75%

@CurroRodriguez CurroRodriguez merged commit 5cf5157 into master Apr 7, 2025
5 checks passed
@CurroRodriguez CurroRodriguez deleted the enhance-spawn branch April 7, 2025 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants