modify suno file name
This commit is contained in:
1 parent
eff711e03e
commit
ca7c0858e2
2 files changed
+7
-87
No files matched your search
@@ -415,13 +415,6 @@ async def get_song_status(
|
||||
|
||||
# processing 상태인 경우에만 백그라운드 태스크 실행 (중복 방지)
|
||||
if song and song.status == "processing":
|
||||
# store_name 조회
|
||||
project_result = await session.execute(
|
||||
select(Project).where(Project.id == song.project_id)
|
||||
)
|
||||
project = project_result.scalar_one_or_none()
|
||||
store_name = project.store_name if project else "song"
|
||||
|
||||
# 상태를 uploading으로 변경 (중복 호출 방지)
|
||||
song.status = "uploading"
|
||||
song.suno_audio_id = first_clip.get("id")
|
||||
@@ -435,12 +428,11 @@ async def get_song_status(
|
||||
download_and_upload_song_by_suno_task_id,
|
||||
suno_task_id=song_id,
|
||||
audio_url=audio_url,
|
||||
store_name=store_name,
|
||||
user_uuid=current_user.user_uuid,
|
||||
duration=clip_duration,
|
||||
)
|
||||
logger.info(
|
||||
f"[get_song_status] Background task scheduled - song_id: {suno_task_id}, store_name: {store_name}"
|
||||
f"[get_song_status] Background task scheduled - song_id: {suno_task_id}"
|
||||
)
|
||||
|
||||
suno_audio_id = first_clip.get("id")
|
||||
|
||||
Reference in new issue
Block a user