video-accessibility/backend/app/tasks
Vadym Samoilenko 7a7b6c1c12 fix(embed): respect Gemini 429 retryDelay and reduce concurrency
- Parse retryDelay from 429 error body and sleep for server_delay+1s
  instead of our own 2s/4s backoff (which was shorter than API requires)
- Reduce embed concurrency 5→2 to halve burst when multiple glossary
  versions embed simultaneously
- Increase max_retries 3→5 and initial backoff 2s→8s for headroom

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-13 18:07:22 +01:00
..
__init__.py chore(lint): fix all ruff errors — 0 warnings remaining 2026-05-13 17:13:08 +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 fix(embed): respect Gemini 429 retryDelay and reduce concurrency 2026-05-13 18:07:22 +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(glossary,vtt): 4 bugs — locale fallback, ingestion source, cue settings, overlap on save 2026-05-13 16:58:13 +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(pipeline): fix 5 QA tickets — caption alignment, glossary, source_has_ad render, filler words, NL error surfacing 2026-05-08 18:36:59 +01:00
rerender_accessible_video.py chore(lint): fix all ruff errors — 0 warnings remaining 2026-05-13 17:13:08 +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 chore(lint): fix all ruff errors — 0 warnings remaining 2026-05-13 17:13:08 +01:00
tts_synthesis.py chore(lint): fix all ruff errors — 0 warnings remaining 2026-05-13 17:13:08 +01:00
whisper_transcribe.py fix: add authentication for Cloud Run service calls 2026-01-02 11:41:07 -06:00