feat: professionalize control plane and standalone delivery
This commit is contained in:
@ -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))
|
||||
|
||||
Reference in New Issue
Block a user