Basic job management

suggest change

Get a list of all jobs in the current session:

Get-Job

Wait for a job to finish before getting the result:

$job | Wait-job | Receive-Job

Stop waiting if a job runs too long (10 seconds in this example). Wait-Job -Timeout does not stop the job itself:

$job | Wait-job -Timeout 10

Stop a running job. Stop-Job does not remove the job from the session:

$job | Stop-Job

Remove job from current session’s background jobs list:

$job | Remove-Job

Note: The following will only work on Workflow Jobs.

Suspend a Workflow Job (Pause):

$job | Suspend-Job

Resume a Workflow Job:

$job | Resume-Job

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents