fix: dispatcher passe frames_dir (job dir) pas parent a pre_decimate

This commit is contained in:
Ubuntu
2026-04-25 16:32:26 +00:00
parent 4db7b13bb0
commit 18b3e0e8e9

View File

@@ -821,10 +821,10 @@ def _post_job_qc_sync(job_id: int, worker: dict, frames_dir: str):
print(f" post_job #{job_id}: worker={worker['host']} != ml-stack, skip QC sync", flush=True)
return
alias = ML_STACK_ALIAS
parent = str(Path(frames_dir).parent)
# frames_dir is already the job dir
pre_cmd = (
f"python3 {_PRE_DECIMATE} {job_id} "
f"--frames-dir {shlex.quote(parent)} "
f"--frames-dir {shlex.quote(frames_dir)} "
f"> /tmp/pre_decimate_{job_id}.log 2>&1"
)
rc_pre, _, _ = ssh(alias, pre_cmd, timeout=600)