mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 10:25:15 +00:00
Test cluster throttle should never be less than 1 (#51713)
This commit is contained in:
parent
6b18cab826
commit
6c879ac63c
@ -80,7 +80,7 @@ public class TestClustersPlugin implements Plugin<Project> {
|
||||
.registerIfAbsent(
|
||||
THROTTLE_SERVICE_NAME,
|
||||
TestClustersThrottle.class,
|
||||
spec -> spec.getMaxParallelUsages().set(Math.min(1, project.getGradle().getStartParameter().getMaxWorkerCount() / 2))
|
||||
spec -> spec.getMaxParallelUsages().set(Math.max(1, project.getGradle().getStartParameter().getMaxWorkerCount() / 2))
|
||||
);
|
||||
|
||||
// register cluster hooks
|
||||
|
Loading…
x
Reference in New Issue
Block a user