mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix(core): Stopping an execution should reject any response promises (#9992)
This commit is contained in:
committed by
GitHub
parent
5e57b0d71e
commit
36b314d031
@@ -19,6 +19,7 @@ import type { Workflow } from './Workflow';
|
||||
import type { WorkflowActivationError } from './errors/workflow-activation.error';
|
||||
import type { WorkflowOperationError } from './errors/workflow-operation.error';
|
||||
import type { WorkflowHooks } from './WorkflowHooks';
|
||||
import type { ExecutionCancelledError } from './errors';
|
||||
import type { NodeOperationError } from './errors/node-operation.error';
|
||||
import type { NodeApiError } from './errors/node-api.error';
|
||||
import type { AxiosProxyConfig } from 'axios';
|
||||
@@ -80,6 +81,7 @@ export type ExecutionError =
|
||||
| ExpressionError
|
||||
| WorkflowActivationError
|
||||
| WorkflowOperationError
|
||||
| ExecutionCancelledError
|
||||
| NodeOperationError
|
||||
| NodeApiError;
|
||||
|
||||
|
||||
10
packages/workflow/src/errors/execution-cancelled.error.ts
Normal file
10
packages/workflow/src/errors/execution-cancelled.error.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { ExecutionBaseError } from './abstract/execution-base.error';
|
||||
|
||||
export class ExecutionCancelledError extends ExecutionBaseError {
|
||||
constructor(executionId: string) {
|
||||
super('The execution was cancelled', {
|
||||
level: 'warning',
|
||||
extra: { executionId },
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
export { ApplicationError } from './application.error';
|
||||
export { ExpressionError } from './expression.error';
|
||||
export { CredentialAccessError } from './credential-access-error';
|
||||
export { ExecutionCancelledError } from './execution-cancelled.error';
|
||||
export { NodeApiError } from './node-api.error';
|
||||
export { NodeOperationError } from './node-operation.error';
|
||||
export { NodeSslError } from './node-ssl.error';
|
||||
|
||||
Reference in New Issue
Block a user