video-accessibility/backend/app/api/v1
Vadym Samoilenko b3ace22009 feat(infra): move heavy workers to Cloud Run Jobs
Heavy pipeline tasks (ingest, translate, render, rerender) now dispatch
to a Cloud Run Job (va-worker) instead of local Celery workers. optical-dev
runs only api + lightweight worker (notify/embed) within its 2-CPU budget.

- backend/app/tasks/runner.py — Cloud Run Job entrypoint
- backend/app/services/cloud_run_dispatch.py — replaces .delay() for heavy tasks
- backend/Dockerfile.cloudrun — Cloud Run worker image (ffmpeg included)
- docker-compose.optical-dev.yml — 2-CPU safe overrides, disables heavy workers
- cloudbuild.yaml — builds va-worker image and updates Cloud Run Job
- deploy-dev.sh — uses 3-file compose, builds only api+worker locally
- routes_jobs, routes_admin_production, ingest_and_ai, translate_and_synthesize
  — all dispatch sites updated to use cloud_run_dispatch.dispatch()

USE_CELERY_FALLBACK=true in .env.local to use Celery locally during dev.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-29 21:47:10 +01:00
..
routes_admin.py feat: two-stage QC (linguist→reviewer), project picker, comments, email notifications, deadlines 2026-04-29 16:59:40 +01:00
routes_admin_production.py feat(infra): move heavy workers to Cloud Run Jobs 2026-04-29 21:47:10 +01:00
routes_auth.py feat(mt-16): JWT org_ids claim + transient user.org_ids in deps 2026-04-29 20:46:39 +01:00
routes_briefs.py feat(w-12): JobBrief model, endpoints, migration + brief→job linkage 2026-04-29 20:38:08 +01:00
routes_clients.py fix(mt-12): remove PM/CLIENT legacy bypass in _assert_client_access 2026-04-29 20:22:56 +01:00
routes_files.py feat: audit log integration sweep + cost tracker URL fix + audit log admin UI 2026-04-29 11:34:06 +01:00
routes_glossaries.py feat(mt-13): bind glossary handlers to client_id via org membership check 2026-04-29 20:24:41 +01:00
routes_invitations.py feat(mt-16): JWT org_ids claim + transient user.org_ids in deps 2026-04-29 20:46:39 +01:00
routes_jobs.py feat(infra): move heavy workers to Cloud Run Jobs 2026-04-29 21:47:10 +01:00
routes_language_qc.py feat(pr6): WS real-time updates, per-cue AD playback, upload guard 2026-04-29 19:42:57 +01:00
routes_organizations.py feat(saas): Phase 3 — membership-based authz + Mailgun + job.organization_id 2026-04-27 16:56:42 +01:00
routes_review_notes.py feat: add linguist role and user management navigation 2026-04-16 11:46:33 +01:00
routes_share.py fix(lint): restore baseline lint count — no new errors introduced 2026-04-29 19:16:35 +01:00
routes_tts.py feat: Client → Team → Project isolation system with Project Manager role 2026-04-27 15:11:13 +01:00
routes_vtt_versions.py feat: VTT version control — snapshots, diff, restore 2026-04-29 11:46:21 +01:00
routes_websockets.py wrote docker files and deployment instructions 2025-10-08 16:00:12 -05:00