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

multiprocessing pool processes spawned within combine_adjacent_features persist till parent process terminates #1435

Closed
richardque opened this issue Jul 3, 2019 · 1 comment · Fixed by #1436
Labels
bug An issue with an existing feature

Comments

@richardque
Copy link

When running my DARTFISH pipeline for multiple FOVs within an experiment, I noticed that multiple processes would continue to spawn with each additional FOV that was processed. I believe I tracked down the culprit to _create_spot_attributes within combine_adjacent_features.py, lines 325-335, a multiprocessing pool is called but doesn't seem to have a termination. Moving it within a with statement appeared to solve the issue for me.
Was the pool left running by design and necessary for other functions?

@ttung
Copy link
Collaborator

ttung commented Jul 4, 2019

This is a bug. Thanks for the report!

@neuromusic neuromusic added the bug An issue with an existing feature label Jul 4, 2019
ttung pushed a commit that referenced this issue Jul 8, 2019
This ensures we shut down the pool when complete.

Test plan: `pytest -v -n4  starfish/core/spots/`
Fixes: #1435
ttung pushed a commit that referenced this issue Jul 9, 2019
This ensures we shut down the pool when complete.

Test plan: `pytest -v -n4  starfish/core/spots/`
Fixes: #1435
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An issue with an existing feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants