Add more server documentation

This commit is contained in:
Andrew Grant authored and Andrew Grant committed 2020-05-02 17:22:11 -04:00
1 parent 6f9f3f6175
commit 9311fb21cb
2 files changed
+24

No files matched your search

+1
View File
@@ -30,6 +30,7 @@ HTTP_TIMEOUT = 30 # Timeout in seconds for requests
WORKLOAD_TIMEOUT = 60 # Timeout when there is no work
ERROR_TIMEOUT = 60 # Timeout when an error is thrown
GAMES_PER_CONCURRENCY = 32 # Total games to play per concurrency
SAVE_PGN_FILES = False # Auto-save PGN output for engine pairings
AUTO_DELETE_ENGINES = True # Delete Engines that are over 24hrs old
+23
View File
@@ -475,6 +475,14 @@ def clientGetWorkload(request):
@not_minified_response
def clientWrongBench(request):
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# #
# POST : Inform the server that an Engine reported an incorrect Bench #
# value during the init process for a Test. We stop the Test and #
# log an Error into the Events table to indicate what happened #
# #
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# Verify the User's credentials
user = django.contrib.auth.authenticate(
username=request.POST['username'],
@@ -510,6 +518,13 @@ def clientWrongBench(request):
@not_minified_response
def clientSubmitNPS(request):
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# #
# POST : Report the speed of the engines in the currently running Test #
# for the User and his Machine. We save this value to display #
# #
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# Verify the User's credentials
user = django.contrib.auth.authenticate(
username=request.POST['username'],
@@ -528,6 +543,14 @@ def clientSubmitNPS(request):
@not_minified_response
def clientSubmitError(request):
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# #
# POST : Report en Engine error to the server. This could be a crash, a #
# timeloss, a disconnect, or an illegal move. Log the Error into #
# the Events table. #
# #
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# Verify the User's credentials
user = django.contrib.auth.authenticate(
username=request.POST['username'],