Skip to content

fix: add embedding batch limit to prevent Workers AI rate limits - #32

Merged
liplus-lin-lay merged 1 commit into
mainfrom
30-embedding-batch-limit
Apr 5, 2026
Merged

liplus-lin-lay merged 1 commit into
mainfrom
30-embedding-batch-limit

Conversation

@liplus-lin-lay

Copy link
Copy Markdown
Member

Refs #30

1回のcron実行あたりのエンベディング生成数をMAX_EMBEDDINGS_PER_RUN (50件) に制限。
Workers AIレート制限到達前に処理を中断し、残りは空bodyHashで保存して次回cronでリトライする。
PR #31 のリトライ機構と組み合わせで、数回のポーリングで全件処理が完了する。

1回のcron実行あたりのエンベディング生成数を50件に制限。
Workers AIのレート制限に到達する前に処理を中断し、
未処理のissueは空bodyHashで保存して次回cronでリトライする。

Refs #30
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
github-rag-mcp e3445cf Apr 05 2026, 01:05 PM

@liplus-lin-lay
liplus-lin-lay merged commit d20b21e into main Apr 5, 2026
3 checks passed
@liplus-lin-lay
liplus-lin-lay deleted the 30-embedding-batch-limit branch April 5, 2026 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: search_issues returns empty due to incorrect Workers AI embedding type cast

1 participant