From 5d2215c1d27f374fb4dcb556be45d68af5a621af Mon Sep 17 00:00:00 2001 From: Broque Thomas <26755000+Nezreka@users.noreply.github.com> Date: Wed, 1 Apr 2026 08:42:55 -0700 Subject: [PATCH] Increase Genius API interval from 1.5s to 2s to reduce 429 rate limits MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Genius rate limits are undocumented but users hit 429s at ~40 req/min. Bumping interval from 1.5s to 2s drops throughput to ~30 req/min which stays under the threshold. No functional change — just slower enrichment. --- core/genius_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/genius_client.py b/core/genius_client.py index f7b8cc18..fac8e228 100644 --- a/core/genius_client.py +++ b/core/genius_client.py @@ -11,7 +11,7 @@ logger = get_logger("genius_client") # Global rate limiting variables _last_api_call_time = 0 _api_call_lock = threading.Lock() -MIN_API_INTERVAL = 1.5 # 1.5s between calls — Genius 429s at 500ms +MIN_API_INTERVAL = 2.0 # 2s between calls — Genius rate limits are undocumented, ~30req/min is safe _rate_limit_backoff = 0 # Extra backoff seconds after 429 _rate_limit_until = 0 # Timestamp until which all calls should wait