fix(core): Fix execution cancellation issues in scaling mode (#12343)

This commit is contained in:
Iván Ovejero
2024-12-30 13:17:55 +01:00
committed by GitHub
parent 870f8640c7
commit e26b406665
4 changed files with 8 additions and 19 deletions

View File

@@ -2,7 +2,7 @@ import type { NodeOptions } from '@sentry/node';
import { close } from '@sentry/node';
import type { ErrorEvent, EventHint } from '@sentry/types';
import { AxiosError } from 'axios';
import { ApplicationError, type ReportingOptions } from 'n8n-workflow';
import { ApplicationError, ExecutionCancelledError, type ReportingOptions } from 'n8n-workflow';
import { createHash } from 'node:crypto';
import { Service } from 'typedi';
@@ -143,6 +143,7 @@ export class ErrorReporter {
}
error(e: unknown, options?: ReportingOptions) {
if (e instanceof ExecutionCancelledError) return;
const toReport = this.wrap(e);
if (toReport) this.report(toReport, options);
}