Skip to content

Commit ae66d32

Browse files
feat(app): update test event callbacks
1 parent 2dd3a85 commit ae66d32

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

invokeai/app/api/dependencies.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,16 +116,16 @@ def on_after_run_node(invocation, queue_item, output):
116116
print("AFTER RUN NODE", invocation.id)
117117
return True
118118

119-
def on_node_error(invocation, queue_item, exc_type, exc_value, exc_traceback):
119+
def on_node_error(invocation, queue_item, error_type, error_message, error_traceback):
120120
print("NODE ERROR", invocation.id)
121121
return True
122122

123123
def on_after_run_session(queue_item):
124124
print("AFTER RUN SESSION", queue_item.item_id)
125125
return True
126126

127-
def on_non_fatal_processor_error(exc_type, exc_value, exc_traceback, queue_item=None):
128-
print("NON FATAL PROCESSOR ERROR", exc_value)
127+
def on_non_fatal_processor_error(queue_item, error_type, error_message, error_traceback):
128+
print("NON FATAL PROCESSOR ERROR", error_message)
129129
return True
130130

131131
session_processor = DefaultSessionProcessor(

0 commit comments

Comments
 (0)