Skip to content

Promote async RAG reload fix#76

Merged
rktclgh merged 1 commit into
mainfrom
develop
May 28, 2026
Merged

Promote async RAG reload fix#76
rktclgh merged 1 commit into
mainfrom
develop

Conversation

@rktclgh

@rktclgh rktclgh commented May 28, 2026

Copy link
Copy Markdown
Owner

Summary

  • promote the asynchronous admin comprehensive RAG reload fix from develop to main
  • this prevents Cloudflare 524 responses by returning a job snapshot immediately and polling status while the background reload continues

Verification

  • PR Run admin RAG reloads asynchronously #75 backend-ci passed
  • Local backend tests passed on issue/be-rag-admin-reload-async:
    • git diff --check
    • ./gradlew test --tests com.fairing.fairplay.ai.rag.service.RagLoadJobServiceTest --no-daemon
    • ./gradlew test --no-daemon

Notes

Manual comprehensive RAG reloads now exceed the proxy response window because embedding calls are throttled to stay under Gemini quota. Return a job snapshot immediately and let a bounded single-worker executor run the reload in the background, with status endpoints for polling.

Constraint: Cloudflare can return 524 when synchronous origin responses exceed the proxy window

Constraint: Gemini quota requires throttled embedding calls during full reloads

Rejected: Remove throttling | would reintroduce 429 and failed user-data embeddings

Confidence: high

Scope-risk: narrow

Tested: git diff --check

Tested: ./gradlew test --tests com.fairing.fairplay.ai.rag.service.RagLoadJobServiceTest --no-daemon

Tested: ./gradlew test --no-daemon

Co-authored-by: OmX <omx@oh-my-codex.dev>
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@coderabbitai

coderabbitai Bot commented May 28, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: ecfeb55e-dd56-4c89-af7e-13b8d9b38b80

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch develop

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@rktclgh rktclgh merged commit ef93900 into main May 28, 2026
3 checks passed
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.

1 participant