Commit 116cfaa
Kapil Borle
Use only 1 runspace in analysis service
Having multiple runspaces crashed scriptanalyzer invocation because of the following two issues:
* PSCmdlet.WriteOutput being called from another thread than Begin/Process
* CompositionContainer.ComposeParts complaining that "...Only one batch can be composed at a time"
We used multiple runspaces in the first pace because PSSA was slow and having multiple instances sped things up. But having multiple runspaces is causing a lot of issues which are hard to debug. Also, PSSA has become significantly fast compared to the previous version and there having just one runspace should give a reasonable performance. And on the positive side we do not have to deal with the aforementioned crashes.1 parent de4ac3f commit 116cfaa
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
0 commit comments