From 3a7c3acc72435f312a8f050d8ad3a1c902d9cff4 Mon Sep 17 00:00:00 2001 From: comfyanonymous Date: Wed, 10 May 2023 15:59:24 -0400 Subject: [PATCH] Send websocket message with list of cached nodes right before execution. --- execution.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/execution.py b/execution.py index 7ee03897..7d18d3b6 100644 --- a/execution.py +++ b/execution.py @@ -169,6 +169,8 @@ class PromptExecutor: recursive_output_delete_if_changed(prompt, self.old_prompt, self.outputs, x) 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() try: to_execute = []