feat(ssulbox): 썰박스 생성 파이프라인 통합 및 콘텐츠 목록 UNION

This commit is contained in:
skkim committed 2026-08-11 11:03:03 +09:00
1 parent 8096837b13
commit 666c3bf6d1
77 files changed
+15912 -349

No files matched your search

+9 -1
View File
@@ -10,7 +10,15 @@ logger = logging.getLogger(__name__)
async def consume_credit(user_uuid: str, session: AsyncSession, *, reason: str = "video generation") -> bool:
"""크레딧 1 차감. 기존 호출처와 시그니처 호환 유지."""
"""크레딧 1 차감. 기존 호출처와 시그니처 호환 유지.
.. deprecated::
사전차감 정책 전환으로 호출처가 사라졌다(video_task.py 의 사후차감 제거).
**새 코드에서 쓰지 말 것.** 이 함수는 멱등성이 없어 재시도 시 중복 차감된다.
생성 작업에는 ``credit_service.deduct_credit_for_job`` /
``refund_credit_for_job`` 을 쓴다.
다음 릴리스에서 제거 예정.
"""
try:
await deduct_credit(
session=session,