Skip to content

Commit

Permalink
fix: Handle fs error when deleting vfolder (#2741) (#2744)
Browse files Browse the repository at this point in the history
Co-authored-by: Sanghun Lee <sanghun@lablup.com>
  • Loading branch information
lablup-octodog and fregataa authored Aug 20, 2024
1 parent 67e8dad commit 2aef6ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions changes/2741.fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Handle OS Error when deleting vfolders.
3 changes: 2 additions & 1 deletion src/ai/backend/storage/api/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,8 @@ class Params(TypedDict):
await log_manager_api_entry(log, "delete_vfolder", params)
ctx: RootContext = request.app["ctx"]
async with ctx.get_volume(params["volume"]) as volume:
await volume.delete_vfolder(params["vfid"])
with handle_fs_errors(volume, params["vfid"]):
await volume.delete_vfolder(params["vfid"])
return web.Response(status=204)


Expand Down

0 comments on commit 2aef6ec

Please sign in to comment.