diff --git a/common/changes/@microsoft/rush/weighted-concurrency_2023-05-01-19-41.json b/common/changes/@microsoft/rush/weighted-concurrency_2023-05-01-19-41.json new file mode 100644 index 00000000000..9c7aac6d21a --- /dev/null +++ b/common/changes/@microsoft/rush/weighted-concurrency_2023-05-01-19-41.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@microsoft/rush", + "comment": "Allow operations to have variable weight for concurrency purposes.", + "type": "none" + } + ], + "packageName": "@microsoft/rush" +} \ No newline at end of file diff --git a/libraries/rush-lib/src/logic/operations/OperationExecutionManager.ts b/libraries/rush-lib/src/logic/operations/OperationExecutionManager.ts index 4cc9847e9f9..0ee7e15d353 100644 --- a/libraries/rush-lib/src/logic/operations/OperationExecutionManager.ts +++ b/libraries/rush-lib/src/logic/operations/OperationExecutionManager.ts @@ -218,7 +218,8 @@ export class OperationExecutionManager { await operation.executeAsync(onOperationComplete); }, { - concurrency: maxParallelism + concurrency: maxParallelism, + useWeight: true } );