forked from official-stockfish/fishtest
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The api's in api.py are a direct connection between the workers and the db. So it makes sense to be very strict in what we accept. Note: a serious bug was discovered in the handling of optional keys in vtjson. So vtjson should be upgraded to the latest version. Since upgrading is necessary anyway, this PR depends on a previously internal feature of vtjson, namely the possibility to pre-compile a schema. Validating an update_task api call for an SPRT run takes 0.026ms on an AWS entry level t2.micro using Python 3.11 (without pre-compiling it takes 0.068ms).
- Loading branch information
1 parent
d2f079b
commit f8b9c28
Showing
3 changed files
with
89 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters