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,
|
source_node_id: str,
|
||||||
error_type: str,
|
error_type: str,
|
||||||
error: str,
|
error: str,
|
||||||
|
user_id: str | None,
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Emitted when an invocation has completed"""
|
"""Emitted when an invocation has completed"""
|
||||||
self.__emit_queue_event(
|
self.__emit_queue_event(
|
||||||
@ -135,6 +136,7 @@ class EventServiceBase:
|
|||||||
"source_node_id": source_node_id,
|
"source_node_id": source_node_id,
|
||||||
"error_type": error_type,
|
"error_type": error_type,
|
||||||
"error": error,
|
"error": error,
|
||||||
|
"user_id": user_id
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -237,6 +237,7 @@ class DefaultSessionProcessor(SessionProcessorBase):
|
|||||||
source_node_id=source_invocation_id,
|
source_node_id=source_invocation_id,
|
||||||
error_type=e.__class__.__name__,
|
error_type=e.__class__.__name__,
|
||||||
error=error,
|
error=error,
|
||||||
|
user_id=None
|
||||||
)
|
)
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user