refactor(core): Simplify worker execution path (#15253)

This commit is contained in:
Iván Ovejero
2025-05-13 16:31:53 +02:00
committed by GitHub
parent 42016143ab
commit 3840cbabbf
8 changed files with 4 additions and 92 deletions

View File

@@ -44,11 +44,9 @@ import {
UnexpectedError,
WAIT_NODE_TYPE,
} from 'n8n-workflow';
import assert from 'node:assert';
import { finished } from 'stream/promises';
import { ActiveExecutions } from '@/active-executions';
import config from '@/config';
import { MCP_TRIGGER_NODE_TYPE } from '@/constants';
import { InternalServerError } from '@/errors/response-errors/internal-server.error';
import { NotFoundError } from '@/errors/response-errors/not-found.error';
@@ -638,15 +636,6 @@ export async function executeWebhook(
);
}
if (
config.getEnv('executions.mode') === 'queue' &&
process.env.OFFLOAD_MANUAL_EXECUTIONS_TO_WORKERS === 'true' &&
runData.executionMode === 'manual'
) {
assert(runData.executionData);
runData.executionData.isTestWebhook = true;
}
// Start now to run the workflow
executionId = await Container.get(WorkflowRunner).run(
runData,