This project is read-only.

WaitForJobToFinish issue

Oct 8, 2013 at 9:11 PM
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.

Suggestions?
Oct 9, 2013 at 1:40 PM
Hm, never had that problem, but I will check it out.
Thanks for reporting the issue!
Oct 9, 2013 at 1:40 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.