mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-18 18:30:19 +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 copy
|
||||||
import heapq
|
import heapq
|
||||||
import inspect
|
import inspect
|
||||||
|
import json
|
||||||
import logging
|
import logging
|
||||||
import sys
|
import sys
|
||||||
import threading
|
import threading
|
||||||
@ -559,6 +560,11 @@ class PromptExecutor:
|
|||||||
current_span = get_current_span()
|
current_span = get_current_span()
|
||||||
current_span.set_status(Status(StatusCode.ERROR))
|
current_span.set_status(Status(StatusCode.ERROR))
|
||||||
current_span.record_exception(ex)
|
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"]
|
node_id = error["node_id"]
|
||||||
class_type = prompt[node_id]["class_type"]
|
class_type = prompt[node_id]["class_type"]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user