fix(core): Account for pre-execution failure in scaling mode (#12815)

This commit is contained in:
Iván Ovejero
2025-01-23 17:26:19 +01:00
committed by GitHub
parent 36e615b28f
commit b4d27c49e3
4 changed files with 44 additions and 12 deletions

View File

@@ -44,7 +44,6 @@ import type {
} from 'n8n-workflow';
import {
LoggerProxy as Logger,
WorkflowOperationError,
NodeHelpers,
NodeConnectionType,
ApplicationError,
@@ -56,6 +55,7 @@ import {
import PCancelable from 'p-cancelable';
import { ErrorReporter } from '@/errors/error-reporter';
import { WorkflowHasIssuesError } from '@/errors/workflow-has-issues.error';
import * as NodeExecuteFunctions from '@/node-execute-functions';
import { ExecuteContext, PollContext } from './node-execution-context';
@@ -1246,9 +1246,7 @@ export class WorkflowExecute {
pinDataNodeNames,
});
if (workflowIssues !== null) {
throw new WorkflowOperationError(
'The workflow has issues and cannot be executed for that reason. Please fix them first.',
);
throw new WorkflowHasIssuesError();
}
// Variables which hold temporary data for each node-execution