video-accessibility/backend/app/migrations/scripts
michael 76c4c60b0d fix: add tts_failed and render_failed to MongoDB schema validator
MongoDB was rejecting status updates to 'tts_failed' and 'render_failed'
because these values weren't in the schema validator's enum, even though
they were defined in the Python JobStatus model.

This caused TTS failures to leave jobs stuck in 'tts_generating' status
with no error feedback to users - the WriteError from MongoDB prevented
the status and error fields from being updated.

The migration adds both failed statuses to the jobs collection validator.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-05 14:09:41 -06:00
..
migration_2025-08-17-120000_initial_schema.py initial commit 2025-08-24 16:28:33 -05:00
migration_2025-08-17-120001_index_optimization.py initial commit 2025-08-24 16:28:33 -05:00
migration_2025-08-17-120002_audit_log_schema_update.py initial commit 2025-08-24 16:28:33 -05:00
migration_2025-10-10-000000_add_auth_provider.py fixed dates on scheme validator migration 2025-10-10 10:59:20 -05:00
migration_2025-10-10-000001_update_user_schema_validator.py fixed dates on scheme validator migration 2025-10-10 10:59:20 -05:00
migration_2025-12-22-000000_add_approved_source_status.py add approved_source and qc_feedback job statuses to MongoDB schema 2025-12-22 13:12:14 -06:00
migration_2025-12-27-000000_add_rendering_video_status.py fix: add rendering_video status to MongoDB schema validator 2025-12-27 08:40:23 -06:00
migration_2026-01-05-000000_add_failed_statuses.py fix: add tts_failed and render_failed to MongoDB schema validator 2026-01-05 14:09:41 -06:00