mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(core): Fix execution cancellation issues in scaling mode (#12343)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user