mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 11:01:15 +00:00
chore(core): Add check to help diagnose PAY-2100 (#11282)
This commit is contained in:
@@ -15,6 +15,7 @@ import type {
|
|||||||
IWorkflowExecutionDataProcess,
|
IWorkflowExecutionDataProcess,
|
||||||
} from 'n8n-workflow';
|
} from 'n8n-workflow';
|
||||||
import {
|
import {
|
||||||
|
ApplicationError,
|
||||||
ErrorReporterProxy as ErrorReporter,
|
ErrorReporterProxy as ErrorReporter,
|
||||||
ExecutionCancelledError,
|
ExecutionCancelledError,
|
||||||
Workflow,
|
Workflow,
|
||||||
@@ -381,6 +382,17 @@ export class WorkflowRunner {
|
|||||||
let job: Job;
|
let job: Job;
|
||||||
let hooks: WorkflowHooks;
|
let hooks: WorkflowHooks;
|
||||||
try {
|
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 });
|
job = await this.scalingService.addJob(jobData, { priority: realtime ? 50 : 100 });
|
||||||
|
|
||||||
hooks = WorkflowExecuteAdditionalData.getWorkflowHooksWorkerMain(
|
hooks = WorkflowExecuteAdditionalData.getWorkflowHooksWorkerMain(
|
||||||
|
|||||||
Reference in New Issue
Block a user