Console icon indicating copy to clipboard operation
Console copied to clipboard

Update Wait-RemoteSitecoreJob.ps1

Open simoncroak opened this issue 2 years ago • 0 comments

This PR is to fix two issues with Wait-RemoteSitecoreJob.ps1

  1. As mentioned in https://github.com/SitecorePowerShell/Console/issues/1266#issue-1248688022 Wait-RemoteSitecoreJob 'fails' when the job finishes, this PR removes the "$finishscript" call that is not needed.

  2. The Wait-RemoteSitecoreJob did not support multiple JobId's being passed. Updated to support the passing of a String Arraylist of job Id's (one or many), the foreach loop then returns the status of each job with a 'sleep' time between each. The 'while' loop then exits when one or many jobs have returned 'done'.

simoncroak avatar May 30 '22 18:05 simoncroak