SynEdgy / Sampler.DscPipeline

DSC Pipeline Helpers and tasks for use with Datum
MIT License
9 stars 9 forks source link

Calling `Split-Array` only if `TotalJobCount` more than 1 #25

Closed raandree closed 1 year ago

raandree commented 1 year ago

Pull Request (PR) description

The redesign of Split-Array in #22 added new validation for parameter ChunkCount:

[ValidateRange(2, [long]::MaxValue)]
[int]
$ChunkCount,

Note: No changelog entry added as this should have been part of #22.

The method should only be called when the is more than one worker / job.

This Pull Request (PR) fixes the following issues

NA

Task list


This change is Reviewable