From dfd6489c9622fdf48728e336fc263df283c84903 Mon Sep 17 00:00:00 2001 From: Chris Date: Sun, 3 Sep 2023 07:53:02 +1000 Subject: [PATCH] onExecutionStart --- web/scripts/app.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/scripts/app.js b/web/scripts/app.js index 3b7483cd..ce5e27d0 100644 --- a/web/scripts/app.js +++ b/web/scripts/app.js @@ -994,6 +994,10 @@ export class ComfyApp { api.addEventListener("execution_start", ({ detail }) => { this.runningNodeId = null; this.lastExecutionError = null + this.graph._nodes.forEach((node) => { + if (node.onExecutionStart) + node.onExecutionStart() + }) }); api.addEventListener("execution_error", ({ detail }) => {