Wait-Job timeout not working on PowerShell Core on Linux

Copper Contributor

Hi - 

 

I'm having trouble with the Wait-Job cmdlet on PowerShell Core for Linux. I have a Job created with Start-Job, which I wait for with:

Wait-Job $job -Timeout 30

Which should timeout after 30-seconds. However, the command consistently hangs for 2-minutes before it completes. Am I doing something wrong? I'm running PowerShell 6.2.0 on Ubuntu 16.04.6 LTS.


Many thanks!

0 Replies