multipass icon indicating copy to clipboard operation
multipass copied to clipboard

Stopping operation blocks daemon

Open townsend2010 opened this issue 5 years ago • 5 comments

Similar to #1036, the stopping operation can block the daemon as well.

townsend2010 avatar Sep 11 '19 13:09 townsend2010

Hey @ricab,

Same here, I believe the stopping stuff you are working should address this too, right?

townsend2010 avatar Apr 24 '24 18:04 townsend2010

Hey @townsend2010. Hmm, sort of. My current goal is to make it possible to serve info in parallel to stop. Running info in a dedicated thread is one way to achieve that, in which case stop is still not parallel to the remaining operations. The same approach could also be extended to list. I could instead run stop in a separate thread, but I had trouble with that as we discussed. I can try to revisit.

ricab avatar Apr 24 '24 19:04 ricab

Ok, I do know that stopping an instance can sometimes take a while, so I'm concerned if that happens, then the GUI would become unresponsive since the daemon would be blocking because the stop runs in the main thread. We can revisit this later, but I'll leave you assigned for the time being.

townsend2010 avatar Apr 24 '24 19:04 townsend2010

Right, I will see what I can do.

ricab avatar Apr 24 '24 19:04 ricab

Thank you @ricab!

townsend2010 avatar Apr 24 '24 19:04 townsend2010