video-accessibility/backend/app/tasks
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
..
__init__.py chore: push all session changes — backend hardening, tests, apache config, deploy scripts 2026-04-30 15:52:14 +01:00
_websocket_bridge.py chore: push all session changes — backend hardening, tests, apache config, deploy scripts 2026-04-30 15:52:14 +01:00
embed_glossary.py chore: push all session changes — backend hardening, tests, apache config, deploy scripts 2026-04-30 15:52:14 +01:00
ffmpeg_operations.py chore: push all session changes — backend hardening, tests, apache config, deploy scripts 2026-04-30 15:52:14 +01:00
ingest_and_ai.py fix(vtt): auto-fix overlapping cues from AI-generated output 2026-05-08 13:23:08 +01:00
notify.py feat(briefs+notify+downloads): fix projects dropdown, add assignee, expand languages, fix PM email, add Download All 2026-04-30 21:47:28 +01:00
render_accessible_video.py fix(ui): connection dot in navbar, profile page, render error visibility + audit log 2026-05-01 16:19:12 +01:00
rerender_accessible_video.py fix(ui): connection dot in navbar, profile page, render error visibility + audit log 2026-05-01 16:19:12 +01:00
runner.py chore: push all session changes — backend hardening, tests, apache config, deploy scripts 2026-04-30 15:52:14 +01:00
translate_and_synthesize.py fix(tts): run TTS pipeline when accessible_video_mp4=True even if audio_description_mp3=False 2026-05-08 13:53:49 +01:00
tts_synthesis.py fix(tts): respect API retryDelay on 429 instead of short exponential backoff 2026-05-08 17:04:45 +01:00
whisper_transcribe.py fix: add authentication for Cloud Run service calls 2026-01-02 11:41:07 -06:00