Skip to content

Commit

Permalink
Give some allowance to datagen task time limits
Browse files Browse the repository at this point in the history
  • Loading branch information
Viren6 committed Aug 16, 2024
1 parent 7f972bd commit 5b7a67b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion server/montytest/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
according to the route/URL mapping defined in `__init__.py`.
"""

WORKER_VERSION = 9
WORKER_VERSION = 10


@exception_view_config(HTTPException)
Expand Down
2 changes: 1 addition & 1 deletion worker/games.py
Original file line number Diff line number Diff line change
Expand Up @@ -1392,7 +1392,7 @@ def parse_datagen_output(p, tc_factor, result, remote, current_state):
t_error = threading.Thread(target=enqueue_output, args=(p.stderr, q), daemon=True)
t_error.start()

tc_limit = tc_factor * 1800
tc_limit = tc_factor * 1800 * 2 # Allow a factor of two to account for variance
end_time = datetime.now(timezone.utc) + timedelta(seconds=tc_limit)
print("TC limit {} End time: {}".format(tc_limit, end_time))

Expand Down
2 changes: 1 addition & 1 deletion worker/sri.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"__version": 9, "updater.py": "gSJX/HbsPwsZnUZaFbAgF0zwWPWXv+LEw9jBhJkxFOrCH9CZS0+4U4nE2fJdeNze", "worker.py": "CpPkp1BXzFPTAcGu/jprcPmOmwKUIOdwJVoMs04mydOm9/fN5MTCEjFv6OjQqxMG", "games.py": "l7/kK9dTab5z3RtSqlw1snkkAjJpj1JdM+o9QiefNVCSetQvUTMWpLT1t+e2Rt4u"}
{"__version": 10, "updater.py": "gSJX/HbsPwsZnUZaFbAgF0zwWPWXv+LEw9jBhJkxFOrCH9CZS0+4U4nE2fJdeNze", "worker.py": "jJwMRIZ3A/jwtMlDYAxUDtVRK1oEmcHXCVH3Fgv+06XIUNjPzs55EFRNTD7Z/4/W", "games.py": "SIb27gdQviYwb9I4NQeaA4a3qFDbUjrIKeWqKXbcVoQCjzC/y3QhlQ5vSUXVqBzu"}
2 changes: 1 addition & 1 deletion worker/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
MIN_CARGO_MAJOR = 1
MIN_CARGO_MINOR = 77

WORKER_VERSION = 9
WORKER_VERSION = 10
FILE_LIST = ["updater.py", "worker.py", "games.py"]
HTTP_TIMEOUT = 30.0
INITIAL_RETRY_TIME = 15.0
Expand Down

0 comments on commit 5b7a67b

Please sign in to comment.