fix(blog): 3s delay between queued LLM pipelines to prevent nginx 429 bursts

This commit is contained in:
Rene Fichtmueller 2026-03-31 19:40:40 +02:00
parent 45abd15fe4
commit 58a26116b1

View File

@ -912,8 +912,8 @@ async function processLlmQueue(): Promise<void> {
}
}
llmRunning = false;
// Process next item
if (llmQueue.length > 0) processLlmQueue();
// Process next item — small delay between pipelines to avoid nginx rate-limit bursts
if (llmQueue.length > 0) setTimeout(() => processLlmQueue(), 3000);
}
/** Run 10-Step Flexoptix Style LLM Pipeline and update draft in-place */