fix: 가사/노래/영상 재생성 시 올바른 레코드 업데이트되도록 수정
This commit is contained in:
1 parent
7a0d5a6272
commit
c92d6e2135
7 files changed
+92
-62
No files matched your search
@@ -561,7 +561,7 @@ async def get_video_status(
|
||||
|
||||
# 백그라운드 태스크로 MP4 다운로드 → Blob 업로드 → DB 업데이트 → 임시 파일 삭제
|
||||
logger.info(
|
||||
f"[get_video_status] Background task args - task_id: {video.task_id}, video_url: {video_url}, store_name: {store_name}"
|
||||
f"[get_video_status] Background task args - task_id: {video.task_id}, video_url: {video_url}, store_name: {store_name}, creatomate_render_id: {creatomate_render_id}"
|
||||
)
|
||||
background_tasks.add_task(
|
||||
download_and_upload_video_to_blob,
|
||||
@@ -569,6 +569,7 @@ async def get_video_status(
|
||||
video_url=video_url,
|
||||
store_name=store_name,
|
||||
user_uuid=current_user.user_uuid,
|
||||
creatomate_render_id=creatomate_render_id,
|
||||
)
|
||||
elif video and video.status == "completed":
|
||||
logger.debug(
|
||||
@@ -823,6 +824,7 @@ async def get_videos(
|
||||
project = projects_map.get(video.project_id)
|
||||
|
||||
item = VideoListItem(
|
||||
video_id=video.id,
|
||||
store_name=project.store_name if project else None,
|
||||
region=project.region if project else None,
|
||||
task_id=video.task_id,
|
||||
@@ -850,3 +852,5 @@ async def get_videos(
|
||||
status_code=500,
|
||||
detail=f"영상 목록 조회에 실패했습니다: {str(e)}",
|
||||
)
|
||||
|
||||
|
||||
Reference in new issue
Block a user