mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 18:41:14 +00:00
refactor(core): Persist node execution order, and forward it to the frontend (#14455)
This commit is contained in:
committed by
GitHub
parent
707ecb63ae
commit
9ba58ca80b
@@ -68,7 +68,7 @@ function hookFunctionsPush(
|
||||
if (!pushRef) return;
|
||||
const logger = Container.get(Logger);
|
||||
const pushInstance = Container.get(Push);
|
||||
hooks.addHandler('nodeExecuteBefore', function (nodeName) {
|
||||
hooks.addHandler('nodeExecuteBefore', function (nodeName, data) {
|
||||
const { executionId } = this;
|
||||
// Push data to session which started workflow before each
|
||||
// node which starts rendering
|
||||
@@ -78,7 +78,10 @@ function hookFunctionsPush(
|
||||
workflowId: this.workflowData.id,
|
||||
});
|
||||
|
||||
pushInstance.send({ type: 'nodeExecuteBefore', data: { executionId, nodeName } }, pushRef);
|
||||
pushInstance.send(
|
||||
{ type: 'nodeExecuteBefore', data: { executionId, nodeName, data } },
|
||||
pushRef,
|
||||
);
|
||||
});
|
||||
hooks.addHandler('nodeExecuteAfter', function (nodeName, data) {
|
||||
const { executionId } = this;
|
||||
|
||||
Reference in New Issue
Block a user