修复拆镜复刻切片重试BUG

This commit is contained in:
2026-07-10 09:20:10 +08:00
parent 353a5d5093
commit f11e23ec00
@@ -538,7 +538,6 @@ async def prepare_retry_split_segment(
event_type=ShotReplicateLogEventEnum.SEGMENT_SPLIT_RETRY_REJECTED.value,
project_id=task_set.id,
step_id=segment.id,
status="rejected",
message=reject_reason,
detail={
"segment_id": segment.id,
@@ -546,6 +545,7 @@ async def prepare_retry_split_segment(
"from_split_status": from_split_status,
"force": force,
"reason": reason,
"status": "rejected",
},
)
raise HTTPException(status_code=400, detail=reject_reason)
@@ -569,7 +569,6 @@ async def prepare_retry_split_segment(
event_type=ShotReplicateLogEventEnum.SEGMENT_SPLIT_RETRY_RECEIVED.value,
project_id=task_set.id,
step_id=segment.id,
status="pending",
message="拆镜片段切片失败重试已重置,等待投递 Celery",
detail={
"segment_id": segment.id,
@@ -581,6 +580,7 @@ async def prepare_retry_split_segment(
"source_path": task_set.video_path,
"celery_task_name": "shot_replicate.split_one_segment",
"queue": "gen_result_download",
"status": "pending",
},
)