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> |
||
|---|---|---|
| .. | ||
| migration_2025-08-17-120000_initial_schema.py | ||
| migration_2025-08-17-120001_index_optimization.py | ||
| migration_2025-08-17-120002_audit_log_schema_update.py | ||
| migration_2025-10-10-000000_add_auth_provider.py | ||
| migration_2025-10-10-000001_update_user_schema_validator.py | ||
| migration_2025-12-22-000000_add_approved_source_status.py | ||
| migration_2025-12-27-000000_add_rendering_video_status.py | ||
| migration_2026-01-05-000000_add_failed_statuses.py | ||