Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$MaxQueue is 0 in End Block, PowerShell 2 #3

Closed
RamblingCookieMonster opened this issue Jan 21, 2015 · 1 comment
Closed

$MaxQueue is 0 in End Block, PowerShell 2 #3

RamblingCookieMonster opened this issue Jan 21, 2015 · 1 comment

Comments

@RamblingCookieMonster
Copy link
Owner

MaxQueue is set to 0 in End block. Reproducible in PowerShell 2 (Native and -Version switch):

1..2 | Invoke-Parallel {"What?"} -Verbose

Result:

VERBOSE: Throttle: '20' SleepTimer '200' runSpaceTimeout '0' maxQueue '0' logFile 'C:\temp\log.log'
VERBOSE: Creating runspace pool and session states
VERBOSE: Creating empty collection to hold runspace jobs
VERBOSE: Adding 1 to collection at 1/20/2015 7:52:26 PM
VERBOSE: "1/20/2015 7:52:26 PM";"Removing:'1'";"0 minutes";"Completed";
what
VERBOSE: 0 items running - exceeded 0 limit.

First item runs, then we get stuck thinking we've reached the MaxQueue ceiling.

RamblingCookieMonster added a commit that referenced this issue Jan 21, 2015
Minor changes, tested against PS2,4,5
@RamblingCookieMonster
Copy link
Owner Author

Not sure exactly what happened. Begin block sets $MaxQueue, verified with Verbose output.

In PowerShell 2 only, End block, Try block, we don't see this unless we reference the Script scope.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant