Open andreped opened 2 years ago
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.
Does this work now, @dbouget? If so, then I believe this issue can be closed.
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: https://github.com/dbouget/Raidionics/issues/20