视频提词API超时600秒 | 错误信息重新捕获

This commit is contained in:
2026-07-24 16:12:41 +08:00
parent 663c4fa9db
commit 8325ae1f71
4 changed files with 11 additions and 11 deletions
@@ -1066,10 +1066,10 @@ async def run_video_prompt_optimize_v2(
project, step = row
if step.status == ModuleStepStatusEnum.PROCESSING.value:
step.status = ModuleStepStatusEnum.FAILED.value
step.error_message = str(exc)
step.error_message = str(exc) if str(exc) else type(exc).__name__
step.completed_at = utc_now()
project.status = ModuleProjectStatusEnum.FAILED.value
project.error_message = str(exc)
project.error_message = str(exc) if str(exc) else type(exc).__name__
# provider 已成功时 settle_success 已在当前事务写入 RELEASE/CHARGE
# 即使业务步骤已不存在或已不是 processing,也必须提交账务结算。
await db.commit()