Detect if a process has stopped responding
Hi there, I'd like to work on this if possible or not taken up by someone else
This has the 'Up For Grabs' labels so PR's are welcome. To set expectations, any PR received will go through a slower-than-we-would-like-process of review. Please bear with us.
I was wondering what "a process" here in this context? Is this a process chocolatey has spawned, or chocolatey itself? When would this functionality be used to detect if a process is not responding?
Those is 8 years old, so I'm guessing.
I would think that's when Chocolatey CLI runs an installer through the usual PowerShell helper functions, including Start-ChocolateyProcessAsAdmin, that it detects when a process its spawned, has stopped responding.
Hey @pauby , thanks for coming back to me.
I picked this bug thinking it was a C# PR I could do (as part of a job interview), but it looks like the solution needs to be in Powershell.
Unfortunately, that's not a skill I can demonstrate for the job interview, but as part of my research into this issue I did discover a way to detect whether a process is hung in Powershell. And it seemed more robust than the C# solutions I had in mind.
So if someone would like to take over and do the powershell solution, there's a ready made solution here to implement and test. https://www.hurryupandwait.io/blog/detecting-a-hung-windows-process