From 6fc3562d22cc341a8ed2e4fd1ad3d451ec6a46df Mon Sep 17 00:00:00 2001 From: gilesb Date: Fri, 9 Jan 2026 04:02:51 +0000 Subject: [PATCH] Remove workers from L1 - causes cache inconsistency With multiple workers, each process has its own in-memory cache index. Files added by one worker aren't visible to others, causing intermittent 404 errors. Co-Authored-By: Claude Opus 4.5 --- server.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server.py b/server.py index 459d9d1..cbd5053 100644 --- a/server.py +++ b/server.py @@ -4014,4 +4014,6 @@ async def ui_run_partial(run_id: str, request: Request): if __name__ == "__main__": import uvicorn - uvicorn.run("server:app", host="0.0.0.0", port=8100, workers=4) + # Note: workers disabled because cache_manager uses in-memory state + # that isn't shared between worker processes + uvicorn.run("server:app", host="0.0.0.0", port=8100)