fix: clean output dir per run, fix cron inline comment, clarify volume placeholder

- executor.py: wipe person output dir before each run so stale crops
  from previous runs don't accumulate on disk
- compose.yml: move inline comment off CRON_SCHEDULE value (croniter
  would parse the comment text as part of the expression)
- compose.yml: add note clarifying <pool> placeholder in volume paths

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-12 00:27:52 +00:00
co-authored by Claude Sonnet 4.6
parent b5911c6338
commit 0f3e67d5cc
2 changed files with 9 additions and 4 deletions
+4 -1
View File
@@ -2,6 +2,7 @@
import logging
import os
import shutil
from io import BytesIO
from urllib.parse import quote
@@ -89,7 +90,9 @@ def execute_jobs(jobs: list[dict]) -> None:
job_task = progress.add_task(f"Processing {name}...", total=len(assets))
person_dir = os.path.join(Config.OUTPUT_DIR, name)
os.makedirs(person_dir, exist_ok=True)
if os.path.isdir(person_dir):
shutil.rmtree(person_dir)
os.makedirs(person_dir)
# Track filename → asset_id mapping for upload dedup
asset_map: dict[str, str] = {}