Retries¶
AsyncArxivExtractor, AsyncPubMedExtractor, AsyncSemanticScholarExtractor,
AsyncOpenAlexExtractor, AsyncOpenAICompatibleClient, and AsyncOpenAIEmbedder
retry throttling (429), server errors, and transport faults, making at most
max_retries attempts per request (default 3). The PubMed, Semantic Scholar,
and OpenAlex extractors retry a 408 request timeout too:
- Backoff. Between attempts they wait
backoff_factor ** attemptseconds: 1 s, then 2 s with the default factor of 2. Retry-After. When a response says how long to wait, inRetry-Afteror theretry-after-msheader OpenAI-compatible APIs send, they wait that long instead whenever it is longer than the backoff, up tomax_retry_afterseconds (default 60).- One retry layer. The OpenAI SDK's own retries are turned off, so
max_retriesis the total number of attempts. - Visibility. The extractors log each retry and its wait through
logger.
The client from build_async_client also retries failed connections at the
transport level (total_retries, default 5) before the extractor counts one
failed attempt.