mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-11-23 20:27:02 +08:00
Move ExecutionBlocker to a better location
This commit is contained in:
parent
a2a537cde6
commit
d233db0ef1
@ -164,3 +164,9 @@ class ExecutionList(TopologicalSort):
|
||||
node_id = self.staged_node_id
|
||||
self.pop_node(node_id)
|
||||
self.staged_node_id = None
|
||||
|
||||
# Return this from a node and any users will be blocked with the given error message.
|
||||
class ExecutionBlocker:
|
||||
def __init__(self, message):
|
||||
self.message = message
|
||||
|
||||
|
||||
@ -84,11 +84,6 @@ class GraphBuilder:
|
||||
id = self.prefix + id
|
||||
del self.nodes[id]
|
||||
|
||||
# Return this from a node and any users will be blocked with the given error message.
|
||||
class ExecutionBlocker:
|
||||
def __init__(self, message):
|
||||
self.message = message
|
||||
|
||||
class Node:
|
||||
def __init__(self, id, class_type, inputs):
|
||||
self.id = id
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
from comfy.graph_utils import GraphBuilder, is_link, ExecutionBlocker
|
||||
from comfy.graph_utils import GraphBuilder, is_link
|
||||
from comfy.graph import ExecutionBlocker
|
||||
|
||||
NUM_FLOW_SOCKETS = 5
|
||||
class WhileLoopOpen:
|
||||
|
||||
@ -13,8 +13,8 @@ import nodes
|
||||
|
||||
import comfy.model_management
|
||||
import comfy.graph_utils
|
||||
from comfy.graph import get_input_info, ExecutionList, DynamicPrompt
|
||||
from comfy.graph_utils import is_link, ExecutionBlocker, GraphBuilder
|
||||
from comfy.graph import get_input_info, ExecutionList, DynamicPrompt, ExecutionBlocker
|
||||
from comfy.graph_utils import is_link, GraphBuilder
|
||||
from comfy.caching import HierarchicalCache, LRUCache, CacheKeySetInputSignature, CacheKeySetInputSignatureWithID, CacheKeySetID
|
||||
|
||||
class ExecutionResult(Enum):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user