Skip to content

Use psutil to terminate processes when available#142

Merged
ogrisel merged 2 commits intojoblib:masterfrom
ogrisel:fix-pgrep-dependency
Aug 1, 2018
Merged

Use psutil to terminate processes when available#142
ogrisel merged 2 commits intojoblib:masterfrom
ogrisel:fix-pgrep-dependency

Conversation

@ogrisel
Copy link
Copy Markdown
Contributor

@ogrisel ogrisel commented Aug 1, 2018

This is useful on POSIX systems where pgrep is not installed such
as minimal docker images for instance.

The issue was found by @yarikoptic on the debian build system.

ogrisel added 2 commits August 1, 2018 15:25
This is useful on POSIX systems where pgrep is not installed such
as minimal docker images for instance.
@ogrisel ogrisel merged commit 21a6e8f into joblib:master Aug 1, 2018
@ogrisel ogrisel deleted the fix-pgrep-dependency branch August 1, 2018 15:21

for child in children:
try:
child.terminate()
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We should directly call kill as the goal of recursive_terminate is to forcefully clean-up the remaining worker when the executor is not in a proper state.

Right now, this makes it very slow to kill workers and the test max_depth takes more than 1:30min. Another solution is to reduce the timeout line 39.

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