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

This commit is contained in:
comfyanonymous 2023-09-03 16:59:41 -04:00
commit 2419901e6c
1 changed files with 4 additions and 0 deletions

View File

@ -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 }) => {