Wait for multiple async jobs to finish?

Wait for multiple async jobs to finish?

avatar

It looks like Wait-PSUJob can only wait for one job, am I correct in what I am seeing? If so does anyone have an idea of how to wait for multiple async jobs to finish?

We have a set of jobs I want to run in parallel and then run post processing once all of them are complete. The only thing I can think of currently is to create a script that executes the jobs and then call that script using wait from another script… but that feels more complicated than it needs to be and being able to execute and wait for multiple jobs (like promise.all in JS) would be ideal.

Thanks!

Product: PowerShell Universal
Version: 4.1.5


All Comments (0)

Sysadminotaur pondering a question Special Q&A

Our CTO is answering your AI questions

A rare opportunity — ask our CTO directly.

11 questions already asked Ends in 4 days
Ask your question →