UNPKG

n8n

Version:

n8n Workflow Automation Tool

18 lines (17 loc) 865 B
import type { IExecutionDb, UpdateExecutionConditions } from '@n8n/db'; import { type ExecutionStatus, type IRun, type IWorkflowBase } from 'n8n-workflow'; import type { UpdateExecutionPayload } from '../../interfaces'; export declare function determineFinalExecutionStatus(runData: IRun): ExecutionStatus; export declare function prepareExecutionDataForDbUpdate(parameters: { runData: IRun; workflowData: IWorkflowBase; workflowStatusFinal: ExecutionStatus; retryOf?: string; }): UpdateExecutionPayload; export declare function updateExistingExecutionMetadata(executionId: string, metadata?: Record<string, string>): Promise<void>; export declare function updateExistingExecution(parameters: { executionId: string; workflowId: string; executionData: Partial<IExecutionDb>; conditions?: UpdateExecutionConditions; }): Promise<void>;