feat: P2V 파이프라인 연동 및 좋아요·댓글·공유 지원
- 무빙 포스터(p2v_video)·롱컷(p2v_playreel) 파이프라인과 워커, 갤러리·내 콘텐츠 노출 - 좋아요·댓글: comment/video_reaction에 p2v_playreel_id 추가, 종류별 CHECK 확장 - P2V 소프트 삭제(is_deleted), queued/running 삭제 차단 - 공개 상세·공유 OG 페이지 추가 - 삭제된 부모 댓글이 목록에서 사라지던 has_live_reply 서브쿼리 버그 수정 - 마이그레이션: migration_2026-10-15_p2v_reactions.sql
This commit is contained in:
1 parent
bb1ea12958
commit
b16d4a8f1b
126 files changed
+6921
-62
No files matched your search
@@ -0,0 +1,47 @@
|
||||
"""DB 잡 레코드의 진행도로 쓰이는 파이프라인 단계 상태
|
||||
실행 순서대로 선언됨
|
||||
마지막 COMPLETED는 종료 표시
|
||||
"""
|
||||
from enum import StrEnum
|
||||
|
||||
|
||||
def stage_keys(state_type) -> list[str]:
|
||||
"""실행 순서대로 나열된 단계 이름
|
||||
COMPLETED는 종료 표시라 빠짐
|
||||
"""
|
||||
return [member.value for member in state_type if member.name != "COMPLETED"]
|
||||
|
||||
|
||||
def initial_timings(state_type) -> dict:
|
||||
"""스테퍼가 그리는 단계별 시각의 초기값
|
||||
키 순서가 곧 화면에 찍히는 순서라 생성 시점에 다 채워 둔다
|
||||
"""
|
||||
return {key: {"status": "idle", "started": None, "ended": None}
|
||||
for key in stage_keys(state_type)}
|
||||
|
||||
|
||||
class PosterAliveState(StrEnum):
|
||||
DETECT = "detect"
|
||||
NARRATION_TEXT = "narration_text"
|
||||
MOTION = "motion"
|
||||
TTS = "tts"
|
||||
BGM = "bgm"
|
||||
I2V = "i2v"
|
||||
RENDER = "render"
|
||||
COMPLETED = "completed"
|
||||
|
||||
|
||||
class PlayreelState(StrEnum):
|
||||
FETCH = "fetch"
|
||||
SPLIT = "split"
|
||||
UPSCALE = "upscale"
|
||||
ANALYZE = "analyze"
|
||||
MOTION = "motion"
|
||||
NARRATION = "narration"
|
||||
TTS = "tts"
|
||||
BGM = "bgm"
|
||||
I2V = "i2v"
|
||||
HYBRID = "hybrid"
|
||||
COMPOSE = "compose"
|
||||
REVIEW = "review"
|
||||
COMPLETED = "completed"
|
||||
Reference in new issue
Block a user