Quantcast
Channel: PowerShell.org » All Posts
Viewing all articles
Browse latest Browse all 13067

Reply To: [PowerShell] Methods – BeginStop

$
0
0

Hi Dave,

To clarify, I’m doing this for an update to Invoke-Parallel which was a ‘I have no idea what I’m doing here but this makes things faster’ first stab…

The updated code is here. One of two things happen when I run this with a timeout and a thread freezes (script block running an external command that hangs): I get stuck at closing the runspacepool (previously got stuck when disposing the powershell instance), or PowerShell crashes.

So basically, I want to forcefully kill the powershell instance. If you ctrl-f for ‘#this is not working properly’, that is where I presume I am stumbling. Also at the very end of the function when I close the runspacepool.

My apologies for the convoluted description : )


Viewing all articles
Browse latest Browse all 13067

Trending Articles