Commit 2419901e authored by comfyanonymous's avatar comfyanonymous
Browse files

Merge branch 'addOnExecutionStart' of https://github.com/chrisgoringe/ComfyUI

parents a74c5dbf dfd6489c
...@@ -994,6 +994,10 @@ export class ComfyApp { ...@@ -994,6 +994,10 @@ export class ComfyApp {
api.addEventListener("execution_start", ({ detail }) => { api.addEventListener("execution_start", ({ detail }) => {
this.runningNodeId = null; this.runningNodeId = null;
this.lastExecutionError = null this.lastExecutionError = null
this.graph._nodes.forEach((node) => {
if (node.onExecutionStart)
node.onExecutionStart()
})
}); });
api.addEventListener("execution_error", ({ detail }) => { api.addEventListener("execution_error", ({ detail }) => {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment