Skip to content

Commit

Permalink
restore getExecutionCancelSignal
Browse files Browse the repository at this point in the history
  • Loading branch information
netroy committed Nov 24, 2023
1 parent 31a296f commit 4b9a419
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/src/NodeExecuteFunctions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2510,7 +2510,8 @@ const getCommonWorkflowFunctions = (

const executionCancellationFunctions = (
abortSignal: AbortSignal,
): Pick<IExecuteFunctions, 'onExecutionCancellation'> => ({
): Pick<IExecuteFunctions, 'onExecutionCancellation' | 'getExecutionCancelSignal'> => ({
getExecutionCancelSignal: () => abortSignal,
onExecutionCancellation: (handler) => {
const fn = () => {
abortSignal.removeEventListener('abort', fn);
Expand Down
1 change: 1 addition & 0 deletions packages/workflow/src/Interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -778,6 +778,7 @@ type BaseExecutionFunctions = FunctionsBaseWithRequiredKeys<'getMode'> & {
getExecuteData(): IExecuteData;
getWorkflowDataProxy(itemIndex: number): IWorkflowDataProxyData;
getInputSourceData(inputIndex?: number, inputName?: string): ISourceData;
getExecutionCancelSignal(): AbortSignal;
onExecutionCancellation(handler: () => unknown): void;
};

Expand Down

0 comments on commit 4b9a419

Please sign in to comment.