1
mirror of https://github.com/comfyanonymous/ComfyUI.git synced 2025-08-03 23:49:57 +08:00

onExecutionStart

This commit is contained in:
Chris
2023-09-03 07:53:02 +10:00
parent 62efc78a4b
commit dfd6489c96

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