mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-08-03 07:26:31 +08:00
Add a way to interrupt current processing in the backend.
This commit is contained in:
7
nodes.py
7
nodes.py
@@ -41,6 +41,13 @@ def recursive_search(directory):
|
||||
def filter_files_extensions(files, extensions):
|
||||
return sorted(list(filter(lambda a: os.path.splitext(a)[-1].lower() in extensions, files)))
|
||||
|
||||
|
||||
def before_node_execution():
|
||||
model_management.throw_exception_if_processing_interrupted()
|
||||
|
||||
def interrupt_processing():
|
||||
model_management.interrupt_current_processing()
|
||||
|
||||
class CLIPTextEncode:
|
||||
@classmethod
|
||||
def INPUT_TYPES(s):
|
||||
|
Reference in New Issue
Block a user