mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
add nullable user to invocation error events
This commit is contained in:
parent
b0cfca9d24
commit
5f3e7afd45
@ -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
|
||||
},
|
||||
)
|
||||
|
||||
|
@ -237,6 +237,7 @@ class DefaultSessionProcessor(SessionProcessorBase):
|
||||
source_node_id=source_invocation_id,
|
||||
error_type=e.__class__.__name__,
|
||||
error=error,
|
||||
user_id=None
|
||||
)
|
||||
pass
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user