From 1d58e5922a6f03945355aca015df46fc29b7a797 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 7e36940fc..451f354d1 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/") could also +requires to 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