mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
fix(core): Do not execute workflowExecuteBefore hook when resuming executions from a waiting state (#5727)
This commit is contained in:
committed by
GitHub
parent
b1e1c5b306
commit
6689451e8c
@@ -746,7 +746,9 @@ export class WorkflowExecute {
|
||||
|
||||
const returnPromise = (async () => {
|
||||
try {
|
||||
await this.executeHook('workflowExecuteBefore', [workflow]);
|
||||
if (!this.additionalData.restartExecutionId) {
|
||||
await this.executeHook('workflowExecuteBefore', [workflow]);
|
||||
}
|
||||
} catch (error) {
|
||||
// Set the error that it can be saved correctly
|
||||
executionError = {
|
||||
|
||||
Reference in New Issue
Block a user