Skip to content

Commit

Permalink
create tmp file and rename it
Browse files Browse the repository at this point in the history
  • Loading branch information
ychiucco committed Aug 22, 2024
1 parent 1978108 commit 16c1b7d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fractal_server/app/runner/v2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,8 +450,9 @@ async def submit_workflow(
reset_logger_handlers(logger)
db_sync.close()
shutil.make_archive(
base_name=job.working_dir,
base_name=f"{job.working_dir}_tmp",
format="zip",
root_dir=Path(job.working_dir),
)
shutil.move(f"{job.working_dir}_tmp.zip", f"{job.working_dir}.zip")
shutil.rmtree(job.working_dir)

0 comments on commit 16c1b7d

Please sign in to comment.