feat: #1796 MediaKit 对口型后端对接 (#1801)
CI/CD Pipeline / Dedup Check - skip PR tests when covered by push pipeline (push) Successful in 2s
CI/CD Pipeline / Check push changed paths (push) Successful in 15s
CI/CD Pipeline / Build Staging API Image (push) Successful in 15s
CI/CD Pipeline / Build Staging Worker Image (push) Successful in 16s
CI/CD Pipeline / Build Staging Web Image (push) Successful in 17s
CI/CD Pipeline / Integration Tests (push) Successful in 1m13s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (push) Successful in 1m26s
CI/CD Pipeline / Validate - Style (push) Successful in 2m3s
CI/CD Pipeline / Validate - Python (mypy + alembic) (push) Successful in 2m17s
CI/CD Pipeline / Staging E2E Tests (push) Failing after 1m30s
CI/CD Pipeline / ACR Image Cleanup (push) Successful in 1m37s
CI/CD Pipeline / Frontend Unit Tests (push) Successful in 5m23s
CI/CD Pipeline / Staging API Integration Tests (push) Successful in 3m47s
CI/CD Pipeline / Unit Tests (push) Successful in 8m7s
CI/CD Pipeline / Validate - Security (push) Successful in 9m43s
CI/CD Pipeline / Production Browser E2E (push) Has been skipped
CI/CD Pipeline / Canary Release to Production (push) Failing after 190h26m18s
CI/CD Pipeline / CI Gate (push) Failing after 190h26m22s
CI/CD Pipeline / Build Production Worker Image (push) Failing after 190h26m22s
CI/CD Pipeline / Build Production Web Image (push) Failing after 190h26m22s
CI/CD Pipeline / PR Build Worker Image (push) Failing after 190h36m2s
CI/CD Pipeline / Build Production API Image (push) Failing after 190h26m22s
CI/CD Pipeline / PR Build Web Image (push) Failing after 190h36m2s
CI/CD Pipeline / Retag skipped Staging Worker Image (push) Failing after 190h35m32s
CI/CD Pipeline / Retag skipped Staging Web Image (push) Failing after 190h35m33s
CI/CD Pipeline / PR Build API Image (push) Failing after 190h36m3s
CI/CD Pipeline / Frontend Lint (push) Failing after 190h36m3s
CI/CD Pipeline / Check if frontend-only change (push) Failing after 190h36m8s
CI/CD Pipeline / Deploy Production (push) Failing after 191h1m3s
CI/CD Pipeline / Retag skipped Staging API Image (push) Failing after 191h10m18s
CI/CD Pipeline / Dedup Check - skip PR tests when covered by push pipeline (push) Successful in 2s
CI/CD Pipeline / Check push changed paths (push) Successful in 15s
CI/CD Pipeline / Build Staging API Image (push) Successful in 15s
CI/CD Pipeline / Build Staging Worker Image (push) Successful in 16s
CI/CD Pipeline / Build Staging Web Image (push) Successful in 17s
CI/CD Pipeline / Integration Tests (push) Successful in 1m13s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (push) Successful in 1m26s
CI/CD Pipeline / Validate - Style (push) Successful in 2m3s
CI/CD Pipeline / Validate - Python (mypy + alembic) (push) Successful in 2m17s
CI/CD Pipeline / Staging E2E Tests (push) Failing after 1m30s
CI/CD Pipeline / ACR Image Cleanup (push) Successful in 1m37s
CI/CD Pipeline / Frontend Unit Tests (push) Successful in 5m23s
CI/CD Pipeline / Staging API Integration Tests (push) Successful in 3m47s
CI/CD Pipeline / Unit Tests (push) Successful in 8m7s
CI/CD Pipeline / Validate - Security (push) Successful in 9m43s
CI/CD Pipeline / Production Browser E2E (push) Has been skipped
CI/CD Pipeline / Canary Release to Production (push) Failing after 190h26m18s
CI/CD Pipeline / CI Gate (push) Failing after 190h26m22s
CI/CD Pipeline / Build Production Worker Image (push) Failing after 190h26m22s
CI/CD Pipeline / Build Production Web Image (push) Failing after 190h26m22s
CI/CD Pipeline / PR Build Worker Image (push) Failing after 190h36m2s
CI/CD Pipeline / Build Production API Image (push) Failing after 190h26m22s
CI/CD Pipeline / PR Build Web Image (push) Failing after 190h36m2s
CI/CD Pipeline / Retag skipped Staging Worker Image (push) Failing after 190h35m32s
CI/CD Pipeline / Retag skipped Staging Web Image (push) Failing after 190h35m33s
CI/CD Pipeline / PR Build API Image (push) Failing after 190h36m3s
CI/CD Pipeline / Frontend Lint (push) Failing after 190h36m3s
CI/CD Pipeline / Check if frontend-only change (push) Failing after 190h36m8s
CI/CD Pipeline / Deploy Production (push) Failing after 191h1m3s
CI/CD Pipeline / Retag skipped Staging API Image (push) Failing after 191h10m18s
Co-authored-by: xiaoxia <dev@xiaoxiajianji.com> Co-committed-by: xiaoxia <dev@xiaoxiajianji.com>
This commit was merged in pull request #1801.
This commit is contained in:
@@ -668,3 +668,37 @@ class ScriptModel(Base):
|
||||
tags = Column(JSON, nullable=False, default=list)
|
||||
created_at = Column(DateTime(timezone=True), nullable=False, default=lambda: datetime.now(timezone.utc))
|
||||
updated_at = Column(DateTime(timezone=True), nullable=False, default=lambda: datetime.now(timezone.utc))
|
||||
|
||||
|
||||
class LipsyncJobModel(Base):
|
||||
"""对口型任务 ORM 模型 — #1796 MediaKit 对口型.
|
||||
|
||||
记录用户提交的对口型任务,跟踪 MediaKit 异步任务状态。
|
||||
"""
|
||||
|
||||
__tablename__ = "lipsync_jobs"
|
||||
|
||||
id = Column(String(36), primary_key=True)
|
||||
user_id = Column(String(36), nullable=False, index=True)
|
||||
project_id = Column(String(36), nullable=False, default="", index=True)
|
||||
|
||||
# 输入参数
|
||||
video_url = Column(Text, nullable=False)
|
||||
audio_url = Column(Text, nullable=False)
|
||||
enable_video_loop = Column(Boolean, nullable=False, default=False)
|
||||
|
||||
# MediaKit 任务状态
|
||||
mediakit_task_id = Column(String(200), nullable=False, default="", index=True)
|
||||
status = Column(
|
||||
String(20), nullable=False, default="pending", index=True
|
||||
) # pending → submitted → processing → completed → failed
|
||||
output_video_url = Column(Text, nullable=False, default="")
|
||||
output_duration = Column(Float, nullable=False, default=0.0)
|
||||
error_message = Column(Text, nullable=False, default="")
|
||||
error_code = Column(String(100), nullable=False, default="")
|
||||
|
||||
# 时间戳
|
||||
submitted_at = Column(DateTime, nullable=True)
|
||||
completed_at = Column(DateTime, nullable=True)
|
||||
created_at = Column(DateTime, nullable=False, default=lambda: datetime.now(timezone.utc))
|
||||
updated_at = Column(DateTime, nullable=False, default=lambda: datetime.now(timezone.utc))
|
||||
|
||||
Reference in New Issue
Block a user