locked
PowerShell Core on Linux Wait-Job timeout not working RRS feed

  • Question

  • 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, and if not, could this bug be fixed? I'm running PowerShell 6.2.0 on Ubuntu 16.04.6 LTS.


    Many thanks!

    Monday, July 22, 2019 8:02 AM

All replies

  • Post bugs in the UserVoice forum.  Be sure you have the latest builds of all components installed before posting.

    PS Core is now at 6.2.2 I believe and has an update for Net Core.

    https://github.com/PowerShell/PowerShell/releases

    Scroll to bottom.


    \_(ツ)_/

    Monday, July 22, 2019 8:32 AM
  • The timeout doesn't mean it will kill the job after 30 seconds, if that's what you're saying.  

    Tuesday, July 23, 2019 12:14 AM
  • Hi,

    Was your issue resolved?

    If you resolved it using our solution, please "mark it as answer" to help other community members find the helpful reply quickly.

    If you resolve it using your own solution, please share your experience and solution here. It will be very beneficial for other community members who have similar questions.

    If no, please reply and tell us the current situation in order to provide further help.

    Best Regards,

    Lee


    Just do it.

    Wednesday, July 31, 2019 7:08 AM