Skip to content

Commit

Permalink
Set task_duration to 180
Browse files Browse the repository at this point in the history
  • Loading branch information
ppigazzini committed Dec 8, 2023
1 parent f8b9c28 commit 2557370
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion server/fishtest/rundb.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ def __init__(self, db_name="fishtest_new"):
print(f"Unable to obtain the port number. Error: {self.port}", flush=True)
self.task_runs = []

self.task_duration = 1800 # 30 minutes
self.task_duration = 180 # 3 minutes
self.ltc_lower_bound = 40 # Beware: this is used as a filter in an index!
self.pt_info = {
"pt_version": "SF_16",
Expand Down
1 change: 1 addition & 0 deletions server/fishtest/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -926,6 +926,7 @@ def strip_message(m):
sprt_batch_size_games = 2 * max(
1, int(0.5 + 16 / get_tc_ratio(data["tc"], data["threads"]))
)
sprt_batch_size_games = 8
assert sprt_batch_size_games % 2 == 0
elo_model = request.POST["elo_model"]
if elo_model not in ["BayesElo", "logistic", "normalized"]:
Expand Down
4 changes: 2 additions & 2 deletions server/tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ def new_run(self, add_tasks=0):
"master",
"master",
num_games,
"10+0.01",
"10+0.01",
"1+0.01",
"1+0.01",
"book",
"10",
1,
Expand Down

0 comments on commit 2557370

Please sign in to comment.