add nullable user to invocation error events

This commit is contained in:
maryhipp 2024-05-17 12:41:21 -04:00 committed by psychedelicious
parent b0cfca9d24
commit 5f3e7afd45
2 changed files with 3 additions and 0 deletions

View File

@ -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
},
)

View File

@ -237,6 +237,7 @@ class DefaultSessionProcessor(SessionProcessorBase):
source_node_id=source_invocation_id,
error_type=e.__class__.__name__,
error=error,
user_id=None
)
pass