Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

onExecutionStart

Chrisdfd6489c9622
diff --git a/web/scripts/app.js b/web/scripts/app.js
index 3b7483cdf..ce5e27d0c 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 }) => {