chore: update retry logic

This commit is contained in:
2026-06-02 19:53:21 -05:00
parent eb8871d6d2
commit 1de60d74fd
+1 -1
View File
@@ -174,7 +174,7 @@ async function runOllamaLoop(ctx: AgentRunContext): Promise<AgentResult> {
options: { num_ctx: numCtx, temperature: 0.1 },
}),
{
delaysMs: [3_000, 8_000],
delaysMs: [3_000, 8_000, 15_000, 30_000, 600_000], // up to 6 attempts over ~16 minutes
shouldRetry: (err) => {
const msg = err instanceof Error ? err.message : String(err);
return /unexpected EOF|XML syntax error|ECONNRESET|ETIMEDOUT|fetch failed/i.test(msg);