From 33b807d5454f1f5bdb8c8993a0009fcbc7a241b0 Mon Sep 17 00:00:00 2001 From: rob Date: Mon, 2 Feb 2026 08:17:56 -0400 Subject: [PATCH] Reduce backfill throttle to 0.1s to fit within gunicorn timeout MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 0.5s × 136 tools = 68s of sleep alone, which combined with network time exceeded gunicorn's 120s worker timeout. Co-Authored-By: Claude Opus 4.5 --- src/cmdforge/registry/embeddings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmdforge/registry/embeddings.py b/src/cmdforge/registry/embeddings.py index 16e970f..6f99685 100644 --- a/src/cmdforge/registry/embeddings.py +++ b/src/cmdforge/registry/embeddings.py @@ -204,7 +204,7 @@ def backfill_all_embeddings( ollama_url: Optional[str] = None, model: Optional[str] = None, batch_size: int = 20, - throttle: float = 0.5, + throttle: float = 0.1, ) -> Dict[str, int]: """Generate embeddings for all public/approved tools that don't have one.