mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[6.8] Fix number of executions per agent in flaky test job (#5… (#54349)
This commit is contained in:
parent
259a82d32d
commit
79502eb2da
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ def getWorkerMap(agentNumber, numberOfExecutions, worker, workerFailures, maxWor
|
|||
def numberOfWorkers = Math.min(numberOfExecutions, maxWorkerProcesses)
|
||||
|
||||
for(def i = 1; i <= numberOfWorkers; i++) {
|
||||
def workerExecutions = numberOfExecutions/numberOfWorkers + (i <= numberOfExecutions%numberOfWorkers ? 1 : 0)
|
||||
def workerExecutions = floor(numberOfExecutions/numberOfWorkers + (i <= numberOfExecutions%numberOfWorkers ? 1 : 0))
|
||||
|
||||
workerMap["agent-${agentNumber}-worker-${i}"] = { workerNumber ->
|
||||
for(def j = 0; j < workerExecutions; j++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue