mirror of
https://github.com/safishamsi/graphify.git
synced 2026-07-12 18:37:12 +00:00
64c1f21070
On strict per-org concurrency/RPM caps (notably Moonshot/kimi), a parallel `graphify extract --force` 429'd, and because the provider SDKs default to only max_retries=2, the chunk gave up after two attempts, logged `chunk N failed`, and was silently dropped — an incomplete graph plus the screen full of rate_limit_reached_error spam in the report. The SDKs already back off exponentially and honor Retry-After; they just need more attempts to outlast the rate window. The OpenAI-compatible, Azure, and Anthropic clients are now built with max_retries=_resolve_max_retries() (default 6, override via GRAPHIFY_MAX_RETRIES; 0 disables). For very tight accounts, --max-concurrency 1 further cuts the concurrency that trips org-level limits. Reported by @bercedev (#1523). Tests: _resolve_max_retries default/env/invalid, and the OpenAI-compatible client is constructed with retries. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>