20260601 优化sequence远端产物拉取

This commit is contained in:
yuyr 2026-06-01 13:51:08 +08:00
parent 00d7109503
commit bf8c924326

View File

@ -56,6 +56,7 @@ def rsync_from_remote(target: str, source: str | Path, destination: Path) -> Non
def rsync_run_artifacts_from_remote(target: str, source: str | Path, destination: Path) -> None:
destination.mkdir(parents=True, exist_ok=True)
rsync_base = ["rsync", "-az", "--partial", "--partial-dir=.rsync-partial"]
for name in [
"result.ccr",
"result.cir",
@ -65,7 +66,7 @@ def rsync_run_artifacts_from_remote(target: str, source: str | Path, destination
"started-at.txt",
"finished-at.txt",
]:
run_local(["rsync", "-a", f"{target}:{source}/{name}", f"{destination}/"])
run_local([*rsync_base, f"{target}:{source}/{name}", f"{destination}/"])
def load_json(path: Path) -> Any: