There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
WaitForJobToFinish issue when deployment is too quick
I seem to have a case where a solution deployment is so quick that by the time WaitForJobToFinish is called, Get-SPTimerJob returns a null job.
The solution simply deploys a library dll to the GAC, so I would imagine that deployment would be fast. Does my hypothesis sound correct?
I've update WaitForJobToFinish to log a warning rather than throw an exception when the job is not found, but I'm wary of this approach. While it works in my testing, I fear I may be missing something.