Skip to content

Commit

Permalink
added rpc interface so we can monitor downloads with aria2p cli
Browse files Browse the repository at this point in the history
  • Loading branch information
rgaudin committed Mar 29, 2024
1 parent 669163c commit f3c352a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/offspot_demo/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,14 @@ def download_file_into(url: str, dest: Path, digest: S3CompatibleETag) -> int:
) as tmpdir:
tmp_dest = Path(tmpdir).joinpath("image.img")

args = ["aria2c", "--dir", str(tmp_dest.parent), "--out", "image.img"]
args = [
"aria2c",
"--dir",
str(tmp_dest.parent),
"--out",
"image.img",
"--enable-rpc",
]
# single part checksum, let aria2 handle checksum validation
if digest.is_singlepart:
args += ["--checksum", digest.checksum]
Expand Down

0 comments on commit f3c352a

Please sign in to comment.