fix: race condition exit_file z620 — rm sync avant bg ffmpeg

This commit is contained in:
Flag
2026-04-23 23:23:28 +00:00
parent 352af149fd
commit 7ed24b66b7

View File

@@ -394,7 +394,8 @@ def _extract_on_remote_host(job_id: int, worker: dict, src_host: str, src_path:
dur = 0.0
frames_est = max(1, int(dur * FPS))
_ssh_via(worker, src_host, f"mkdir -p {shlex.quote(remote_tmp)}")
_ssh_via(worker, src_host,
f"rm -f {shlex.quote(exit_file)}" + f" && rm -rf {shlex.quote(remote_tmp)}" + f" && mkdir -p {shlex.quote(remote_tmp)}")
bg = (
f"rm -f {shlex.quote(exit_file)}; "
f"ffmpeg -hide_banner -loglevel error -i {shlex.quote(src_path)} "