Browse Source

Send websocket message with list of cached nodes right before execution.

pull/652/head
comfyanonymous 2 years ago
parent
commit
3a7c3acc72
  1. 2
      execution.py

2
execution.py

@ -169,6 +169,8 @@ class PromptExecutor:
recursive_output_delete_if_changed(prompt, self.old_prompt, self.outputs, x) recursive_output_delete_if_changed(prompt, self.old_prompt, self.outputs, x)
current_outputs = set(self.outputs.keys()) current_outputs = set(self.outputs.keys())
if self.server.client_id is not None:
self.server.send_sync("execution_cached", { "nodes": list(current_outputs) }, self.server.client_id)
executed = set() executed = set()
try: try:
to_execute = [] to_execute = []

Loading…
Cancel
Save