Skip to content

Commit

Permalink
fix: Handle fs error when deleting vfolder (#2741)
Browse files Browse the repository at this point in the history
  • Loading branch information
fregataa authored Aug 20, 2024
1 parent 7c7d174 commit b15a210
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 @@ -387,7 +387,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 b15a210

Please sign in to comment.