7ed0ffd5a8
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 8s
CI/CD Pipeline / Frontend Lint (pull_request) Successful in 1m0s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (pull_request) Has been skipped
CI/CD Pipeline / Build Production Runtime Images (pull_request) Has been skipped
CI/CD Pipeline / Staging E2E Tests (pull_request) Has been skipped
CI/CD Pipeline / Staging API Integration Tests (pull_request) Has been skipped
CI/CD Pipeline / Deploy Production (pull_request) Has been skipped
CI/CD Pipeline / Production Browser E2E (pull_request) Has been skipped
根因:任务创建(DB commit)和入队(Celery send_task)是两个独立操作, send_task失败时任务卡在pending状态永远不会执行。 修复: - 新增_safe_enqueue_generation_task安全入队函数 - send_task失败时自动标记任务为failed并记录错误 - 覆盖4处入口:批量创建、generation重试、task_center两级重试