From 61082270715dc51d71e8a93a6d5992b763237ec0 Mon Sep 17 00:00:00 2001 From: Joost VandeVondele Date: Thu, 6 Jul 2023 08:13:08 +0200 Subject: [PATCH 1/2] Clarify message --- worker/games.py | 10 ++++++++-- worker/sri.txt | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/worker/games.py b/worker/games.py index 428a7fbee..31ce521c3 100644 --- a/worker/games.py +++ b/worker/games.py @@ -959,7 +959,10 @@ def parse_cutechess_output( else: if not response["task_alive"]: # This task is no longer necessary - print("Server told us task is no longer needed") + print( + "The server told us that no more games" + " are needed for the current task." + ) return False update_succeeded = True num_games_updated = num_games_finished @@ -991,7 +994,10 @@ def launch_cutechess( if not req["task_alive"]: # This task is no longer necessary - print("Server told us task is no longer needed") + print( + "The server told us that no more games" + " are needed for the current task." + ) return False result["spsa"] = { diff --git a/worker/sri.txt b/worker/sri.txt index 621832ee4..3f4a57a9a 100644 --- a/worker/sri.txt +++ b/worker/sri.txt @@ -1 +1 @@ -{"__version": 207, "updater.py": "PHFUVXcoxBFiW2hTqFN5q5WdAw2pK8uzFC7hyMUC3cLY5bGZPhL8TBGThtqDmcXd", "worker.py": "6v8r4DGKbGAS8joczJrNjO3xX4/QImrKkU4xOpNXc5PGy4kFNgcyvxGc96FsUVww", "games.py": "LI8f72sm9yoqxO0sJPbpXTSGIgVfJhb0WuKPZ2AU2z0QCz/4IYnfYik+B/NiWG7x"} +{"__version": 207, "updater.py": "PHFUVXcoxBFiW2hTqFN5q5WdAw2pK8uzFC7hyMUC3cLY5bGZPhL8TBGThtqDmcXd", "worker.py": "6v8r4DGKbGAS8joczJrNjO3xX4/QImrKkU4xOpNXc5PGy4kFNgcyvxGc96FsUVww", "games.py": "I7dj8ULR4KJR9ZEWEBoPdShj+R02EER6WvPvfCqk8js1q7/Oo6RZfLcvABTBXmjs"} From 45aac935880630b0545d056058271ad263d10ebd Mon Sep 17 00:00:00 2001 From: ppigazzini Date: Wed, 12 Jul 2023 16:03:48 +0200 Subject: [PATCH 2/2] Raise worker version to 208 --- server/fishtest/api.py | 2 +- worker/sri.txt | 2 +- worker/worker.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server/fishtest/api.py b/server/fishtest/api.py index 72556fe6e..5d6b93f0a 100644 --- a/server/fishtest/api.py +++ b/server/fishtest/api.py @@ -25,7 +25,7 @@ on how frequently the main instance flushes its run cache. """ -WORKER_VERSION = 207 +WORKER_VERSION = 208 def validate_request(request): diff --git a/worker/sri.txt b/worker/sri.txt index 3f4a57a9a..a405f2e02 100644 --- a/worker/sri.txt +++ b/worker/sri.txt @@ -1 +1 @@ -{"__version": 207, "updater.py": "PHFUVXcoxBFiW2hTqFN5q5WdAw2pK8uzFC7hyMUC3cLY5bGZPhL8TBGThtqDmcXd", "worker.py": "6v8r4DGKbGAS8joczJrNjO3xX4/QImrKkU4xOpNXc5PGy4kFNgcyvxGc96FsUVww", "games.py": "I7dj8ULR4KJR9ZEWEBoPdShj+R02EER6WvPvfCqk8js1q7/Oo6RZfLcvABTBXmjs"} +{"__version": 208, "updater.py": "PHFUVXcoxBFiW2hTqFN5q5WdAw2pK8uzFC7hyMUC3cLY5bGZPhL8TBGThtqDmcXd", "worker.py": "BcXSylZCJ8Snrjys6r87quC030LLNqHBDSAPdEzysBTPLfaP7LRfzSfxxX48aPXa", "games.py": "I7dj8ULR4KJR9ZEWEBoPdShj+R02EER6WvPvfCqk8js1q7/Oo6RZfLcvABTBXmjs"} diff --git a/worker/worker.py b/worker/worker.py index a1728ecd0..fd9d43893 100644 --- a/worker/worker.py +++ b/worker/worker.py @@ -54,7 +54,7 @@ # Several packages are called "expression". # So we make sure to use the locally installed one. -WORKER_VERSION = 207 +WORKER_VERSION = 208 FILE_LIST = ["updater.py", "worker.py", "games.py"] HTTP_TIMEOUT = 30.0 INITIAL_RETRY_TIME = 15.0