Skip to content

fix: retry embedding on next poll when Workers AI call fails#31

Merged
liplus-lin-lay merged 1 commit intomainfrom
fix/embedding-retry-on-failure
Apr 5, 2026
Merged

fix: retry embedding on next poll when Workers AI call fails#31
liplus-lin-lay merged 1 commit intomainfrom
fix/embedding-retry-on-failure

Conversation

@liplus-lin-lay
Copy link
Copy Markdown
Member

Refs #30

エンベディング生成失敗時に bodyHash が保存されてしまい、次回ポーリングで再試行されないバグを修正。
bodyHash を空で保存することで次回ポーリングでリトライさせ、既存 stuck レコード用に reset-hashes エンドポイントを追加。

エンベディング生成失敗時に bodyHash が保存されてしまい、次回ポーリングで
needsEmbedding=false となって永久にリトライされないバグを修正。

- エンベディング失敗時は bodyHash を空にして保存し、次回ポーリングで再試行
- IssueStore に POST /reset-hashes エンドポイントを追加(既存stuck レコードの再同期用)
- ポーリングログに failed カウントを追加

Refs #30

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@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 15e3b13 Apr 05 2026, 12:51 PM

@liplus-lin-lay liplus-lin-lay merged commit 3f54cd1 into main Apr 5, 2026
3 checks passed
@liplus-lin-lay liplus-lin-lay deleted the fix/embedding-retry-on-failure branch April 5, 2026 12:51
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