mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-06-17 02:05:22 -04:00
fix(memory): exempt audits from request timeout (#3886)
This commit is contained in:
@@ -167,6 +167,7 @@ _TIMEOUT_EXEMPT_PREFIXES = (
|
|||||||
"/api/cookbook/setup", # remote pacman/apt installs
|
"/api/cookbook/setup", # remote pacman/apt installs
|
||||||
"/api/upload", # large files
|
"/api/upload", # large files
|
||||||
"/api/image", # diffusion proxies (inpaint/harmonize/upscale/etc.) — own 120s httpx timeout
|
"/api/image", # diffusion proxies (inpaint/harmonize/upscale/etc.) — own 120s httpx timeout
|
||||||
|
"/api/memory/audit", # retains own 120s LLM inactivity timeout
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,10 @@
|
|||||||
|
from pathlib import Path
|
||||||
|
|
||||||
|
|
||||||
|
def test_memory_audit_uses_its_own_llm_timeout():
|
||||||
|
source = Path("app.py").read_text()
|
||||||
|
start = source.index("_TIMEOUT_EXEMPT_PREFIXES =")
|
||||||
|
end = source.index("\n)\n", start)
|
||||||
|
timeout_exemptions = source[start:end]
|
||||||
|
|
||||||
|
assert '"/api/memory/audit"' in timeout_exemptions
|
||||||
Reference in New Issue
Block a user