From 5f3e7afd45fb250d6a0a4a10052ddb556a684851 Mon Sep 17 00:00:00 2001 From: maryhipp Date: Fri, 17 May 2024 12:41:21 -0400 Subject: [PATCH] add nullable user to invocation error events --- invokeai/app/services/events/events_base.py | 2 ++ .../app/services/session_processor/session_processor_default.py | 1 + 2 files changed, 3 insertions(+) diff --git a/invokeai/app/services/events/events_base.py b/invokeai/app/services/events/events_base.py index 6373ec1f78..100e5c024f 100644 --- a/invokeai/app/services/events/events_base.py +++ b/invokeai/app/services/events/events_base.py @@ -122,6 +122,7 @@ class EventServiceBase: source_node_id: str, error_type: str, error: str, + user_id: str | None, ) -> None: """Emitted when an invocation has completed""" self.__emit_queue_event( @@ -135,6 +136,7 @@ class EventServiceBase: "source_node_id": source_node_id, "error_type": error_type, "error": error, + "user_id": user_id }, ) diff --git a/invokeai/app/services/session_processor/session_processor_default.py b/invokeai/app/services/session_processor/session_processor_default.py index 61270e0879..de963867d5 100644 --- a/invokeai/app/services/session_processor/session_processor_default.py +++ b/invokeai/app/services/session_processor/session_processor_default.py @@ -237,6 +237,7 @@ class DefaultSessionProcessor(SessionProcessorBase): source_node_id=source_invocation_id, error_type=e.__class__.__name__, error=error, + user_id=None ) pass