mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 19:11:13 +00:00
refactor(core): Report potentially unused job processor branch (#11298)
This commit is contained in:
@@ -1,7 +1,12 @@
|
|||||||
import type { RunningJobSummary } from '@n8n/api-types';
|
import type { RunningJobSummary } from '@n8n/api-types';
|
||||||
import { InstanceSettings, WorkflowExecute } from 'n8n-core';
|
import { InstanceSettings, WorkflowExecute } from 'n8n-core';
|
||||||
import { BINARY_ENCODING, ApplicationError, Workflow } from 'n8n-workflow';
|
|
||||||
import type { ExecutionStatus, IExecuteResponsePromiseData, IRun } 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 type PCancelable from 'p-cancelable';
|
||||||
import { Service } from 'typedi';
|
import { Service } from 'typedi';
|
||||||
|
|
||||||
@@ -143,6 +148,7 @@ export class JobProcessor {
|
|||||||
workflowExecute = new WorkflowExecute(additionalData, execution.mode, execution.data);
|
workflowExecute = new WorkflowExecute(additionalData, execution.mode, execution.data);
|
||||||
workflowRun = workflowExecute.processRunExecutionData(workflow);
|
workflowRun = workflowExecute.processRunExecutionData(workflow);
|
||||||
} else {
|
} else {
|
||||||
|
ErrorReporter.info(`Worker found execution ${executionId} without data`);
|
||||||
// Execute all nodes
|
// Execute all nodes
|
||||||
// Can execute without webhook so go on
|
// Can execute without webhook so go on
|
||||||
workflowExecute = new WorkflowExecute(additionalData, execution.mode);
|
workflowExecute = new WorkflowExecute(additionalData, execution.mode);
|
||||||
|
|||||||
Reference in New Issue
Block a user