From eadddf67c138523ced275fa1bbd647424f669671 Mon Sep 17 00:00:00 2001 From: Sanghun Lee Date: Fri, 29 Nov 2024 17:07:42 +0900 Subject: [PATCH] fix: Set names to vfolder deletion events (#3182) --- src/ai/backend/common/events.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ai/backend/common/events.py b/src/ai/backend/common/events.py index cae24e22a5..ed91bac87b 100644 --- a/src/ai/backend/common/events.py +++ b/src/ai/backend/common/events.py @@ -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: @@ -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