Skip to content

Commit

Permalink
limit the batch size amplification
Browse files Browse the repository at this point in the history
  • Loading branch information
vondele authored and ppigazzini committed May 3, 2023
1 parent 420c77c commit 473c40b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/fishtest/rundb.py
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ def worker_cap(self, run, worker_info):
assert concurrency >= 1
# as we have more tasks done (>250), make them longer to avoid
# having many tasks in long running tests
scale_duration = 1 + (len(run["tasks"]) // 250)
scale_duration = 1 + min(4, len(run["tasks"]) // 250)
games = self.task_duration * scale_duration / game_time * concurrency
if "sprt" in run["args"]:
batch_size = 2 * run["args"]["sprt"].get("batch_size", 1)
Expand Down

0 comments on commit 473c40b

Please sign in to comment.