1
1
mirror of https://github.com/n8n-io/n8n.git synced 2024-08-16 16:40:30 +03:00

fix(core): Don't execute 'workflowExecuteBefore' hook on execution continuations (#9905)

This commit is contained in:
Danny Martini 2024-07-09 15:11:33 +02:00 committed by GitHub
parent 4e2f0adb2a
commit adb83155ca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -146,7 +146,7 @@ export class WorkflowRunner {
// frontend would not be possible
await this.enqueueExecution(executionId, data, loadStaticData, realtime);
} else {
await this.runMainProcess(executionId, data, loadStaticData, executionId);
await this.runMainProcess(executionId, data, loadStaticData, restartExecutionId);
this.eventRelay.emit('workflow-pre-execute', { executionId, data });
}
@ -273,7 +273,6 @@ export class WorkflowRunner {
pushRef: data.pushRef,
});
await additionalData.hooks.executeHookFunctions('workflowExecuteBefore', []);
if (data.executionData !== undefined) {
this.logger.debug(`Execution ID ${executionId} had Execution data. Running with payload.`, {
executionId,