From a8492bd7e40dd6b37abb4bc14e2364575ffc0539 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Thu, 23 May 2024 15:19:34 +1000 Subject: [PATCH] feat(events): add enriched errors to events --- invokeai/app/services/events/events_base.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/invokeai/app/services/events/events_base.py b/invokeai/app/services/events/events_base.py index aa91cdaec8..1ddda2921d 100644 --- a/invokeai/app/services/events/events_base.py +++ b/invokeai/app/services/events/events_base.py @@ -121,7 +121,8 @@ class EventServiceBase: node: dict, source_node_id: str, error_type: str, - error: str, + error_message: str, + error_traceback: str, user_id: str | None, project_id: str | None, ) -> None: @@ -136,7 +137,8 @@ class EventServiceBase: "node": node, "source_node_id": source_node_id, "error_type": error_type, - "error": error, + "error_message": error_message, + "error_traceback": error_traceback, "user_id": user_id, "project_id": project_id, }, @@ -257,7 +259,9 @@ class EventServiceBase: "status": session_queue_item.status, "batch_id": session_queue_item.batch_id, "session_id": session_queue_item.session_id, - "error": session_queue_item.error, + "error_type": session_queue_item.error_type, + "error_message": session_queue_item.error_message, + "error_traceback": session_queue_item.error_traceback, "created_at": str(session_queue_item.created_at) if session_queue_item.created_at else None, "updated_at": str(session_queue_item.updated_at) if session_queue_item.updated_at else None, "started_at": str(session_queue_item.started_at) if session_queue_item.started_at else None,