Skip to content

Commit

Permalink
changelog and rename response file name
Browse files Browse the repository at this point in the history
  • Loading branch information
ychiucco committed Aug 27, 2024
1 parent ee29ced commit 88731c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* API
* Support read-only mode for V1 (\#1701).
* Zip and remove job folder after job execution (\#1702).
* App:
* `UvicornWorker` is now imported from `uvicorn-worker` (\#1690).
* Testing:
Expand Down
3 changes: 2 additions & 1 deletion fractal_server/app/routes/api/v2/job.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from pathlib import Path
from typing import Optional

from fastapi import APIRouter
Expand Down Expand Up @@ -126,7 +127,7 @@ async def download_job_logs(
db=db,
)
job = output["job"]
zip_name = f"{job.working_dir.split('/')[-1]}.zip"
zip_name = f"{Path(job.working_dir).name}_archive.zip"
return StreamingResponse(
_zip_folder_to_byte_stream_iterator(folder=job.working_dir),
media_type="application/x-zip-compressed",
Expand Down

0 comments on commit 88731c5

Please sign in to comment.