mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-12 15:44:06 -08:00
chore(core): Add check to help diagnose PAY-2100 (#11282)
Some checks are pending
Test Master / install-and-build (push) Waiting to run
Test Master / Unit tests (18.x) (push) Blocked by required conditions
Test Master / Unit tests (20.x) (push) Blocked by required conditions
Test Master / Unit tests (22.4) (push) Blocked by required conditions
Test Master / Lint (push) Blocked by required conditions
Test Master / Notify Slack on failure (push) Blocked by required conditions
Benchmark Docker Image CI / build (push) Waiting to run
Some checks are pending
Test Master / install-and-build (push) Waiting to run
Test Master / Unit tests (18.x) (push) Blocked by required conditions
Test Master / Unit tests (20.x) (push) Blocked by required conditions
Test Master / Unit tests (22.4) (push) Blocked by required conditions
Test Master / Lint (push) Blocked by required conditions
Test Master / Notify Slack on failure (push) Blocked by required conditions
Benchmark Docker Image CI / build (push) Waiting to run
This commit is contained in:
parent
0dd15cbe8d
commit
d2266c93a7
|
@ -15,6 +15,7 @@ import type {
|
|||
IWorkflowExecutionDataProcess,
|
||||
} from 'n8n-workflow';
|
||||
import {
|
||||
ApplicationError,
|
||||
ErrorReporterProxy as ErrorReporter,
|
||||
ExecutionCancelledError,
|
||||
Workflow,
|
||||
|
@ -381,6 +382,17 @@ 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(
|
||||
|
|
Loading…
Reference in a new issue