mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2026-09-26 19:51:42 +02:00
refactor(core): Persist node execution order, and forward it to the frontend (#14455)
This commit is contained in:
@@ -232,8 +232,9 @@ export class SupplyDataContext extends BaseExecuteContext implements ISupplyData
|
||||
let taskData: ITaskData | undefined;
|
||||
if (type === 'input') {
|
||||
taskData = {
|
||||
startTime: new Date().getTime(),
|
||||
startTime: Date.now(),
|
||||
executionTime: 0,
|
||||
executionIndex: additionalData.currentNodeExecutionIndex++,
|
||||
executionStatus: 'running',
|
||||
source: [null],
|
||||
};
|
||||
@@ -277,10 +278,10 @@ export class SupplyDataContext extends BaseExecuteContext implements ISupplyData
|
||||
}
|
||||
|
||||
runExecutionData.resultData.runData[nodeName][currentNodeRunIndex] = taskData;
|
||||
await additionalData.hooks?.runHook('nodeExecuteBefore', [nodeName]);
|
||||
await additionalData.hooks?.runHook('nodeExecuteBefore', [nodeName, taskData]);
|
||||
} else {
|
||||
// Outputs
|
||||
taskData.executionTime = new Date().getTime() - taskData.startTime;
|
||||
taskData.executionTime = Date.now() - taskData.startTime;
|
||||
|
||||
await additionalData.hooks?.runHook('nodeExecuteAfter', [
|
||||
nodeName,
|
||||
|
||||
Reference in New Issue
Block a user