From c79e07a1fc4d2e145e115b811791e74f70a4615f Mon Sep 17 00:00:00 2001 From: ppigazzini Date: Sun, 25 Feb 2024 16:55:58 +0100 Subject: [PATCH] Update comment about APIs rely on get_run() --- server/fishtest/api.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/server/fishtest/api.py b/server/fishtest/api.py index 7e36940fc2..ca447694b3 100644 --- a/server/fishtest/api.py +++ b/server/fishtest/api.py @@ -20,12 +20,14 @@ Important note ============== -All apis that are relying on get_run() should be served from a single -Fishtest instance. - -If other instances need information about runs they should query the -db directly. However this information may be slightly outdated, depending -on how frequently the main instance flushes its run cache. +All APIs that rely on get_run() should be served from a single Fishtest instance. +It's essential to note that validate_request() can also utilize get_run(). +Therefore, any APIs using self.validate_request("/api/") should also +be served from the same Fishtest instance. + +If other instances require information about runs, they should directly query the database. +However, please be aware that this information might be slightly outdated, +depending on how frequently the main instance flushes its run cache. """ WORKER_VERSION = 229