修复拆镜复刻切片重试BUG
This commit is contained in:
@@ -538,7 +538,6 @@ async def prepare_retry_split_segment(
|
|||||||
event_type=ShotReplicateLogEventEnum.SEGMENT_SPLIT_RETRY_REJECTED.value,
|
event_type=ShotReplicateLogEventEnum.SEGMENT_SPLIT_RETRY_REJECTED.value,
|
||||||
project_id=task_set.id,
|
project_id=task_set.id,
|
||||||
step_id=segment.id,
|
step_id=segment.id,
|
||||||
status="rejected",
|
|
||||||
message=reject_reason,
|
message=reject_reason,
|
||||||
detail={
|
detail={
|
||||||
"segment_id": segment.id,
|
"segment_id": segment.id,
|
||||||
@@ -546,6 +545,7 @@ async def prepare_retry_split_segment(
|
|||||||
"from_split_status": from_split_status,
|
"from_split_status": from_split_status,
|
||||||
"force": force,
|
"force": force,
|
||||||
"reason": reason,
|
"reason": reason,
|
||||||
|
"status": "rejected",
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
raise HTTPException(status_code=400, detail=reject_reason)
|
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,
|
event_type=ShotReplicateLogEventEnum.SEGMENT_SPLIT_RETRY_RECEIVED.value,
|
||||||
project_id=task_set.id,
|
project_id=task_set.id,
|
||||||
step_id=segment.id,
|
step_id=segment.id,
|
||||||
status="pending",
|
|
||||||
message="拆镜片段切片失败重试已重置,等待投递 Celery",
|
message="拆镜片段切片失败重试已重置,等待投递 Celery",
|
||||||
detail={
|
detail={
|
||||||
"segment_id": segment.id,
|
"segment_id": segment.id,
|
||||||
@@ -581,6 +580,7 @@ async def prepare_retry_split_segment(
|
|||||||
"source_path": task_set.video_path,
|
"source_path": task_set.video_path,
|
||||||
"celery_task_name": "shot_replicate.split_one_segment",
|
"celery_task_name": "shot_replicate.split_one_segment",
|
||||||
"queue": "gen_result_download",
|
"queue": "gen_result_download",
|
||||||
|
"status": "pending",
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user