video-accessibility/scripts
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
..
build-frontend.sh adjusted deploy scripts to NOT make a backup of front end when deploying new one 2025-10-10 12:27:21 -05:00
check_job.py chore: update check_job.py to dump full outputs structure 2026-03-03 11:23:46 +00:00
deploy-dev.sh feat(infra): move heavy workers to Cloud Run Jobs 2026-04-29 21:47:10 +01:00
deploy.sh fix: deploy.sh pull_code now works with monorepo structure 2026-04-16 11:50:20 +01:00
full-deploy.sh fix: add project_manager migration + add migration step to full-deploy.sh 2026-04-27 16:05:17 +01:00
mark-migrations-applied.sh add script to mark old migrations as applied 2025-12-22 13:26:51 -06:00
mongodb-init.js fix: add rendering_video status to MongoDB schema validator 2025-12-27 08:40:23 -06:00
replace_cue_voice.py chore: add one-off script to regenerate AD cue TTS with different voice 2026-03-03 10:58:18 +00:00
run-local.sh added MSAL microsoft authentication 2025-10-10 09:19:39 -05:00