feat: professionalize control plane and standalone delivery

This commit is contained in:
theshy
2026-04-07 10:46:30 +08:00
parent d0cf1fd0df
commit 862db502b0
100 changed files with 8313 additions and 1483 deletions

View File

@ -20,8 +20,13 @@ class WorkspaceCleanupService:
skipped: list[str] = []
if settings.get("delete_source_video_after_collection_synced", False):
source_path = Path(task.source_path)
if source_path.exists():
source_path = Path(task.source_path).resolve()
try:
source_path.relative_to(session_dir)
source_managed = True
except ValueError:
source_managed = False
if source_path.exists() and source_managed:
source_path.unlink()
self.repo.delete_artifact_by_path(task_id, str(source_path.resolve()))
removed.append(str(source_path))