Skip to content

Commit

Permalink
Update comment about APIs rely on get_run()
Browse files Browse the repository at this point in the history
  • Loading branch information
ppigazzini committed Feb 25, 2024
1 parent 6e675ab commit c79e07a
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions server/fishtest/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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/<route>") 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
Expand Down

0 comments on commit c79e07a

Please sign in to comment.