Cancel task by Session ID
Would like to be able to cancel a Powershell task base on Session ID when communication with Azure is lost
andre.nguyen shared this idea
Vincent van Heijningen commented
In a migration I now have 9 tasks waiting for a message back that the copy was successful to Azure. I can't kill these tasks, if I kill PowerShell by stopping the service or reboot the server these tasks are still on waiting/running mode when I start ShareGate again. Irritating! I know the job has stopped because PowerShell is processing the next site collection, but the progress indicator in ShareGate itself says it isn't. I would love to kill these hanging sessions!
Now cancelling with insane mode sucks. Please sollution