함수 상한을 800초로 올리고 깊은 교정의 재시도를 끈다 - #1
Open
hunkim wants to merge 1 commit into
Open
Conversation
Vercel 관측에서 타임아웃이 9% 나왔다. 정독 교정은 Solar를 최대 네 번 부르고 호출당 120초라, 실측 3콜이면 300초 벽에 그대로 걸린다. Pro는 800초까지 올릴 수 있으므로 상한을 옮긴다. 상한만 올리면 보장이 되지 않는다. 재시도가 붙으면 콜당 최악 240초라 네 번이면 960초로 800초도 넘긴다. 120초를 넘긴 호출은 다시 불러도 대개 또 넘기므로, deep에서는 재시도를 끄고 480초 안에 가둔다. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
왜
Vercel 관측에서 타임아웃 비율이 9%로 잡혔다. 원인은
maxDuration = 300이다.정독(deep) 교정은 통독 → 교정 → 롤백 → 보정으로 Solar를 최대 네 번 부르고,
호출당 타임아웃이 120초다. 실측대로 3콜이면 300초 벽에 그대로 닿는다.
API로 확인한 결과 이 팀은 Pro라 800초까지 올릴 수 있다 (Fluid compute 기준
Pro 상한 800초, 30분은 아직 베타).
무엇을
maxDuration300 → 800 (app/api/mcp/route.ts,vercel.json동기화)retries = 0상한만 올려서는 보장이 되지 않는다. 재시도가 붙으면 콜당 최악 240초라
네 번이면 960초 — 800초도 넘긴다. 120초를 넘긴 호출은 다시 불러도 대개
또 넘기므로, deep은 재시도를 끄고 480초 안에 가둔다.
Fluid compute는 I/O 대기 중 CPU 과금이 멈추므로 상한을 올려도 같은 작업의
비용은 그대로다.
남은 것
standard도 롤백·보정이 depth와 무관하게 붙어서 네 콜까지 간다. 재시도가살아 있어 최악 960초로 여전히 800초를 넘길 수 있다. 닫으려면 같은 줄을
depth === "light" ? 1 : 0으로 바꾸면 된다. 이번 PR 범위 밖으로 남겨 뒀다.MCP 클라이언트 쪽 타임아웃은 별개다. 호출당 상한이 800초보다 짧은 클라이언트는
함수가 살아 있어도 먼저 끊는다.
확인
npm run typecheck통과,npm test25/25 통과.🤖 Generated with Claude Code