mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 18:41:14 +00:00
refactor(core): Consolidate execution lifecycle hooks even more + additional tests (#12898)
This commit is contained in:
committed by
GitHub
parent
9bcbc2c2cc
commit
65ec6ae0c8
@@ -38,7 +38,6 @@ import { WorkflowRepository } from '@/databases/repositories/workflow.repository
|
||||
import { EventService } from '@/events/event.service';
|
||||
import type { AiEventMap, AiEventPayload } from '@/events/maps/ai.event-map';
|
||||
import { getWorkflowHooksIntegrated } from '@/execution-lifecycle/execution-lifecycle-hooks';
|
||||
import { ExternalHooks } from '@/external-hooks';
|
||||
import type { UpdateExecutionPayload } from '@/interfaces';
|
||||
import { NodeTypes } from '@/node-types';
|
||||
import { Push } from '@/push';
|
||||
@@ -303,9 +302,6 @@ async function startExecution(
|
||||
);
|
||||
}
|
||||
|
||||
const externalHooks = Container.get(ExternalHooks);
|
||||
await externalHooks.run('workflow.postExecute', [data, workflowData, executionId]);
|
||||
|
||||
// subworkflow either finished, or is in status waiting due to a wait node, both cases are considered successes here
|
||||
if (data.finished === true || data.status === 'waiting') {
|
||||
// Workflow did finish successfully
|
||||
|
||||
Reference in New Issue
Block a user