video-accessibility/backend/app
Vadym Samoilenko 95dbed03bd fix(tts): respect API retryDelay on 429 instead of short exponential backoff
Gemini TTS allows 10 RPM; with concurrency=8 the rate limit is hit quickly.
The previous backoff (1-3s) was far too short — the API returns retryDelay ~37s.
Both synthesize_cue_task (Celery retry countdown) and GeminiTTSService
(_synthesize_cue_with_retry sleep) now parse the retryDelay from the 429
error message and use it (+ 5s buffer) instead of the exponential guess.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-08 17:04:45 +01:00
..
api/v1 fix(gemini): correct fallback model ID + graceful downloads for failed jobs 2026-05-08 12:32:39 +01:00
core fix(auth): await get_redis() coroutine in membership cache 2026-05-08 13:57:57 +01:00
lib fix(vtt): auto-fix overlapping cues from AI-generated output 2026-05-08 13:23:08 +01:00
middleware fix(middleware): add word boundaries to injection patterns; default role to admin 2026-05-06 09:45:28 +01:00
migrations fix: 7 caption/AD quality bugs + retranslation error handling 2026-05-07 15:38:20 +01:00
models fix: 7 caption/AD quality bugs + retranslation error handling 2026-05-07 15:38:20 +01:00
prompts fix: 7 caption/AD quality bugs + retranslation error handling 2026-05-07 15:38:20 +01:00
schemas feat(translation): enforce EN-first pipeline with cue-preserving translations 2026-05-06 12:11:35 +01:00
services fix(tts): respect API retryDelay on 429 instead of short exponential backoff 2026-05-08 17:04:45 +01:00
tasks fix(tts): respect API retryDelay on 429 instead of short exponential backoff 2026-05-08 17:04:45 +01:00
telemetry chore: push all session changes — backend hardening, tests, apache config, deploy scripts 2026-04-30 15:52:14 +01:00
main.py chore: push all session changes — backend hardening, tests, apache config, deploy scripts 2026-04-30 15:52:14 +01:00