mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(core): Ensure job processor does not reprocess amended executions (#11438)
This commit is contained in:
@@ -14,7 +14,6 @@ import type {
|
||||
IWorkflowExecutionDataProcess,
|
||||
} from 'n8n-workflow';
|
||||
import {
|
||||
ApplicationError,
|
||||
ErrorReporterProxy as ErrorReporter,
|
||||
ExecutionCancelledError,
|
||||
Workflow,
|
||||
@@ -381,17 +380,6 @@ export class WorkflowRunner {
|
||||
let job: Job;
|
||||
let hooks: WorkflowHooks;
|
||||
try {
|
||||
// check to help diagnose PAY-2100
|
||||
if (
|
||||
data.executionData?.executionData?.nodeExecutionStack?.length === 0 &&
|
||||
config.getEnv('deployment.type') === 'internal'
|
||||
) {
|
||||
await this.executionRepository.setRunning(executionId); // set `startedAt` so we display it correctly in UI
|
||||
throw new ApplicationError('Execution to enqueue has empty node execution stack', {
|
||||
extra: { executionData: data.executionData },
|
||||
});
|
||||
}
|
||||
|
||||
job = await this.scalingService.addJob(jobData, { priority: realtime ? 50 : 100 });
|
||||
|
||||
hooks = WorkflowExecuteAdditionalData.getWorkflowHooksWorkerMain(
|
||||
|
||||
Reference in New Issue
Block a user