Skip to content

Commit

Permalink
fix: Set names to vfolder deletion events
Browse files Browse the repository at this point in the history
  • Loading branch information
fregataa committed Nov 29, 2024
1 parent 91526da commit 6f36900
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ai/backend/common/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -814,6 +814,8 @@ class VolumeUnmounted(VolumeMountEventArgs, AbstractEvent):

@attrs.define(auto_attribs=True, slots=True)
class VFolderDeletionSuccessEvent(AbstractEvent):
name = "vfolder_deletion_success"

vfid: VFolderID

def serialize(self) -> tuple:
Expand All @@ -828,6 +830,8 @@ def deserialize(cls, value: tuple) -> Self:

@attrs.define(auto_attribs=True, slots=True)
class VFolderDeletionFailureEvent(AbstractEvent):
name = "vfolder_deletion_failure"

vfid: VFolderID
message: str

Expand Down

0 comments on commit 6f36900

Please sign in to comment.