Releases: santisq/PSParallelPipeline
v1.1.5
What's Changed
This release adds support to properly handle property and index accessing on using:
statements. v1.1.4
added support for index accessing however accessing of properties was not working properly. This release fixes that, including nested accessing. Example:
$test = @{
foo = @{
bar = [pscustomobject]@{ baz = 0..10 }
}
}
1 | Invoke-Parallel { $using:test['foo']['bar'].baz[5] } # Outputs: 5
Full Changelog: v1.1.4...v1.1.5
v1.1.4
What's Changed
-
Fixes indexing on
$using:
statements by @santisq in #18This update allows proper index on
$using:
statements, for example:$arr = 0..10; $hash = @{ foo = 'bar' } 1 | Invoke-Parallel { $using:hash['foo'] + ' ' + $using:arr[5] + $_ } # Outputs: # bar 51
In previoues version this would fail with:
Invoke-Parallel
: Exception calling "GetValue" with "1" argument(s): "Cannot process argument because the value of argument "path" is not valid. Change the value of the "path" argument and run the operation again."Thanks to @jborean93 for catching and helping fixing this bug.
Full Changelog: v1.1.3...v1.1.4
v1.1.3
What's Changed
- Added check to validate if a scriptblock is being passed to the parallel scope either through
using:
scope modifier or-Varables
parameter. In both cases there will be a terminating error. - Added pester tests.
Full Changelog: v.1.1.2...v1.1.3
v.1.1.2
What's Changed
- Added Pester tests.
- Few code improvements.
- Added build script and improved CI pipeline.
- Updated docs and readme.
Full Changelog: v1.1.1...v.1.1.2
v1.1.1
What's Changed
Updated ValidateRange
attribute declaration of -ThrottleLimit
parameter to have a max value of 63
. This is due to a limitation of WaitHandle.WaitAny
Method allowing a maximum of 63 concurrent handles on STA State. Previously -ThrottleLimit
would allow a maximum of int.MaxValue
threads.
Full Changelog: v1.1.0...v1.1.1
v1.1.0
What's Changed
Invoke-Parallel
no longer uses a RunspacePool, now uses a custom class to manage parallel invocations.
- Added parameter
-UseNewRunspace
. - Added parameter
-TimeoutSeconds
. - Removed parameter
-ThreadOptions
. The function no longer uses aRunspacePool
, no reason to have it.
Full Changelog: v1.0.3...v1.1.0