sourcegraph/enterprise
Julie Tibshirani 1e2545ba15
[Backport 5.2] Embeddings: fail job immediately if rate limited exceeded (#58939)
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.
2023-12-13 13:57:25 -05:00
..
cmd [Backport 5.2] Embeddings: fail job immediately if rate limited exceeded (#58939) 2023-12-13 13:57:25 -05:00
dev [Backport 5.2] Fix issue with base image rebuilds failing when no packages have changed (#57141) 2023-09-28 09:40:32 -04:00
docs remove docs mentions of old/little-used editor extensions (Atom, Sublime Text) (#44839) 2022-11-28 03:58:27 -08:00
ui/assets/img [SG-29514] Favicon has fuzzy edges in Firefox running on macOS (#32620) 2022-03-17 14:27:12 +01:00
.gitignore Merge enterprise and non-enterprise server images (#56446) 2023-09-11 14:39:27 +02:00
README.md update quick start link in enterprise readme (#35481) 2022-05-16 20:38:35 +02:00

Sourcegraph Enterprise

codecov code style: prettier

This directory contains Sourcegraph Enterprise code.

Dev

See Local development: For Sourcegraph employees for how to work on this code.