-
Notifications
You must be signed in to change notification settings - Fork 1
Parallel Tasks
Luca Sgroi edited this page May 13, 2017
·
7 revisions
Pask supports execution of tasks in parallel with the command Tasks
.
With parallel processing in mind, tasks invoked simultaneously should target independent resources as much as possible. Other constraints apply as per Invoke-Builds documentation.
Example: Build two projects simultaneously.
Task Build-Projects {
Tasks Build-Project1, Build-Project2
}
Example: Invoke two tasks simultaneously providing a custom property Destination
and output build information to a variable $CopyResult
.
Task Copy-Packages {
Tasks Copy-Package1, Copy-Package2 -Result CopyResult -Destination $Dir
}