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

Bug: Unable to kill process when running #23

Open
andreped opened this issue Aug 30, 2022 · 2 comments
Open

Bug: Unable to kill process when running #23

andreped opened this issue Aug 30, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@andreped
Copy link
Member

andreped commented Aug 30, 2022

This has to do with when inference is started it is performed in the backend. We don't have a simple way to communicate with the backend. A better solution would be to create a process where the backend stuff is processing. When the cancel button is presses, we will kill the entire process, which in effect also should kill the backend processing.

However, as discussed in this issue, creating processes in frozen applications in python is challenging: #20

@andreped andreped added the bug Something isn't working label Aug 30, 2022
@dbouget dbouget self-assigned this Sep 1, 2022
@dbouget
Copy link
Collaborator

dbouget commented Sep 1, 2022

Should be able to kill all processes inside the mp.Pool now, as stated here. Will just have to make a class around the logic backend and have the mp.Pool as static variable.
Might be some more issues if/when trying to kill a process during registration, due to ANTs.

@andreped
Copy link
Member Author

andreped commented Apr 4, 2023

Does this work now, @dbouget? If so, then I believe this issue can be closed.

@andreped andreped changed the title Unable to kill process when running Bug: Unable to kill process when running Sep 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants