mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-10 14:20:49 +08:00
record workflow when there's an error
This commit is contained in:
parent
1338e8935f
commit
f576f8124a
@ -4,6 +4,7 @@ import asyncio
|
||||
import copy
|
||||
import heapq
|
||||
import inspect
|
||||
import json
|
||||
import logging
|
||||
import sys
|
||||
import threading
|
||||
@ -559,6 +560,11 @@ class PromptExecutor:
|
||||
current_span = get_current_span()
|
||||
current_span.set_status(Status(StatusCode.ERROR))
|
||||
current_span.record_exception(ex)
|
||||
try:
|
||||
encoded_prompt = json.dumps(prompt)
|
||||
current_span.set_attribute("prompt", encoded_prompt)
|
||||
except Exception as exc_info:
|
||||
pass
|
||||
|
||||
node_id = error["node_id"]
|
||||
class_type = prompt[node_id]["class_type"]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user