Skip to content

Commit dae1fdf

Browse files
author
Miriad
committed
fix: bump BATCH_SIZE to 5 — Fluid Compute enabled (300s limit)
Alex enabled Fluid Compute on Vercel (60s → 300s). BATCH_SIZE=5: 10 API calls × ~12s = ~120s, well within 300s. 39 prompts = ~8 cycles × 5 min = ~40 min total.
1 parent 47c1122 commit dae1fdf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/api/cron/check-research/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ async function buildStuckThresholds(): Promise<Record<string, number>> {
118118
const MAX_DOCS_PER_STATUS = 2;
119119

120120
/** Max prompts to process per cron cycle (each prompt = 2 Imagen calls) */
121-
const INFOGRAPHIC_BATCH_SIZE = 2; // Gemini generateContent with thinking+search takes ~12s/call
121+
const INFOGRAPHIC_BATCH_SIZE = 5; // Fluid Compute enabled (300s limit)
122122

123123
// ---------------------------------------------------------------------------
124124
// Sanity Write Client

0 commit comments

Comments
 (0)