Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/indexing limiters #3572

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

rkuo-danswer
Copy link
Contributor

Description

Fixes DAN-1223.

Uses a semaphore in Redis to prevent more than 6 workers at a time.
delays a task by 30 minutes if the semaphore cannot be acquired.
retries for a task are capped at 64.
Index attempt is marked as canceled in the DB if this occurs.

How Has This Been Tested?

[Describe the tests you ran to verify your changes]

Backporting (check the box to trigger backport action)

Note: You have to check that the action passes, otherwise resolve the conflicts manually and tag the patches.

  • This PR should be backported (make sure to check that the backport attempt succeeds)

Copy link

vercel bot commented Jan 1, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
internal-search ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 1, 2025 2:04am

…ture/indexing_limiters

# Conflicts:
#	backend/onyx/background/celery/tasks/indexing/tasks.py
@rkuo-danswer rkuo-danswer marked this pull request as ready for review January 1, 2025 04:00
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.

2 participants