Skip to content

Commit

Permalink
Drop debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
ppigazzini committed May 7, 2024
1 parent 37e0f21 commit a449e83
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions server/fishtest/rundb.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@
from pymongo import DESCENDING, MongoClient
from vtjson import ValidationError, validate

DEBUG = False

boot_time = datetime.now(timezone.utc)

last_rundb = None
Expand Down Expand Up @@ -374,8 +372,6 @@ def get_run(self, r_id):
self.run_cache[r_id]["rtime"] = time.time()
return self.run_cache[r_id]["run"]
run = self.runs.find_one({"_id": ObjectId(r_id)})
if DEBUG:
print("Load", r_id, flush=True)
if run is not None:
self.run_cache[r_id] = {
"rtime": time.time(),
Expand Down Expand Up @@ -1066,17 +1062,6 @@ def priority(run): # lower is better

self.worker_runs[unique_key]["last_run"] = run["_id"]

if DEBUG:
print(
"Allocate run: https://tests.stockfishchess.org/tests/view/{} task_id: {} to {}/{} Stats: {}".format(
run["_id"],
task_id,
worker_info["username"],
unique_key,
run["tasks"][task_id]["stats"],
),
flush=True,
)
return {"run": run, "task_id": task_id}

# Create a lock for each active run
Expand Down

0 comments on commit a449e83

Please sign in to comment.