refactor(core): Report potentially unused job processor branch (#11298)

This commit is contained in:
Iván Ovejero 2024-10-17 18:38:06 +02:00 committed by GitHub
parent 643d66c0ae
commit 44f95160fb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,7 +1,12 @@
import type { RunningJobSummary } from '@n8n/api-types';
import { InstanceSettings, WorkflowExecute } from 'n8n-core';
import { BINARY_ENCODING, ApplicationError, Workflow } from 'n8n-workflow';
import type { ExecutionStatus, IExecuteResponsePromiseData, IRun } from 'n8n-workflow';
import {
BINARY_ENCODING,
ApplicationError,
Workflow,
ErrorReporterProxy as ErrorReporter,
} from 'n8n-workflow';
import type PCancelable from 'p-cancelable';
import { Service } from 'typedi';
@ -143,6 +148,7 @@ export class JobProcessor {
workflowExecute = new WorkflowExecute(additionalData, execution.mode, execution.data);
workflowRun = workflowExecute.processRunExecutionData(workflow);
} else {
ErrorReporter.info(`Worker found execution ${executionId} without data`);
// Execute all nodes
// Can execute without webhook so go on
workflowExecute = new WorkflowExecute(additionalData, execution.mode);