fix(core): Stopping an execution should reject any response promises (#9992)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2024-07-16 19:25:20 +02:00
committed by GitHub
parent 5e57b0d71e
commit 36b314d031
9 changed files with 55 additions and 23 deletions

View File

@@ -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;

View 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 },
});
}
}

View File

@@ -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';