Theseus circuit breaker (#5196)

* Impl request fence

* Reduce max FETCH_ATTEMPTS

* Tweak fail threshold & window

* Check block status every retry iteration

* Fix fmt

* Fix fmt 2
This commit is contained in:
François-Xavier Talbot
2026-01-23 15:28:50 -05:00
committed by GitHub
parent bdd808c279
commit 79217e78b4
5 changed files with 4151 additions and 3900 deletions

View File

@@ -65,6 +65,9 @@ pub enum ErrorKind {
#[error("Error fetching URL: {0}")]
FetchError(#[from] reqwest::Error),
#[error("Too many API errors; temporarily blocked")]
ApiIsDownError,
#[error("{0}")]
LabrinthError(LabrinthError),