Skip to content

Commit

Permalink
hotfix: memoized volume object not reusable
Browse files Browse the repository at this point in the history
Backported-from: main (24.09)
Backported-to: 23.09
  • Loading branch information
kyujin-cho committed Apr 29, 2024
1 parent 55dfd69 commit 55a34cf
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/ai/backend/storage/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,4 @@ async def get_volume(self, name: str) -> AsyncIterator[AbstractVolume]:
await volume_obj.init()
self.volumes[name] = volume_obj

try:
yield volume_obj
finally:
await volume_obj.shutdown()
yield volume_obj

0 comments on commit 55a34cf

Please sign in to comment.