mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix(core): Don't execute 'workflowExecuteBefore' hook on execution continuations (#9905)
This commit is contained in:
@@ -146,7 +146,7 @@ export class WorkflowRunner {
|
|||||||
// frontend would not be possible
|
// frontend would not be possible
|
||||||
await this.enqueueExecution(executionId, data, loadStaticData, realtime);
|
await this.enqueueExecution(executionId, data, loadStaticData, realtime);
|
||||||
} else {
|
} else {
|
||||||
await this.runMainProcess(executionId, data, loadStaticData, executionId);
|
await this.runMainProcess(executionId, data, loadStaticData, restartExecutionId);
|
||||||
this.eventRelay.emit('workflow-pre-execute', { executionId, data });
|
this.eventRelay.emit('workflow-pre-execute', { executionId, data });
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -273,7 +273,6 @@ export class WorkflowRunner {
|
|||||||
pushRef: data.pushRef,
|
pushRef: data.pushRef,
|
||||||
});
|
});
|
||||||
|
|
||||||
await additionalData.hooks.executeHookFunctions('workflowExecuteBefore', []);
|
|
||||||
if (data.executionData !== undefined) {
|
if (data.executionData !== undefined) {
|
||||||
this.logger.debug(`Execution ID ${executionId} had Execution data. Running with payload.`, {
|
this.logger.debug(`Execution ID ${executionId} had Execution data. Running with payload.`, {
|
||||||
executionId,
|
executionId,
|
||||||
|
|||||||
Reference in New Issue
Block a user