mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 18:31:54 +00:00
Embeddings: fail job immediately if rate limited exceeded (#58869) Usually, during an embeddings job we allow 10% of embedding requests to fail, simply skipping over failed chunks. If a customer has hit their rate limits, this means we might continually send a huge number of embedding requests that we know will immediately fail. With this change, we immediately fail a job if the rate limit is exceeded. It also increases the amount of time between attempting to run a job to 15 minutes. This won't make a big difference to user experience, since by default embeddings jobs aren't allowed to be scheduled within 24h of the last run. But it helps prevent jobs from continuously being scheduled then failing. This change is unlikely to have a user-facing impact, but just helps cut down on noise in logs and excessive requests to Cody Gateway. |
||
|---|---|---|
| .. | ||
| cmd | ||
| dev | ||
| docs | ||
| ui/assets/img | ||
| .gitignore | ||
| README.md | ||
Sourcegraph Enterprise
This directory contains Sourcegraph Enterprise code.
Dev
See Local development: For Sourcegraph employees for how to work on this code.