refactor(core): Mark finished as deprecated (#11682)

This commit is contained in:
Iván Ovejero 2024-11-11 18:12:41 +01:00 committed by GitHub
parent 41dea522fb
commit 4c41575098
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 18 additions and 0 deletions

View file

@ -31,6 +31,11 @@ export class ExecutionEntity {
@PrimaryColumn({ transformer: idStringifier }) @PrimaryColumn({ transformer: idStringifier })
id: string; id: string;
/**
* Whether the execution finished sucessfully.
*
* @deprecated Use `status` instead
*/
@Column() @Column()
finished: boolean; finished: boolean;

View file

@ -135,6 +135,10 @@ export interface IExecutionBase {
startedAt: Date; startedAt: Date;
stoppedAt?: Date; // empty value means execution is still running stoppedAt?: Date; // empty value means execution is still running
workflowId: string; workflowId: string;
/**
* @deprecated Use `status` instead
*/
finished: boolean; finished: boolean;
retryOf?: string; // If it is a retry, the id of the execution it is a retry of. retryOf?: string; // If it is a retry, the id of the execution it is a retry of.
retrySuccessId?: string; // If it failed and a retry did succeed. The id of the successful retry. retrySuccessId?: string; // If it failed and a retry did succeed. The id of the successful retry.

View file

@ -2080,6 +2080,9 @@ export type INodeTypeData = LoadedData<INodeType | IVersionedNodeType>;
export interface IRun { export interface IRun {
data: IRunExecutionData; data: IRunExecutionData;
/**
* @deprecated Use status instead
*/
finished?: boolean; finished?: boolean;
mode: WorkflowExecuteMode; mode: WorkflowExecuteMode;
waitTill?: Date | null; waitTill?: Date | null;
@ -2552,6 +2555,9 @@ export type AnnotationVote = 'up' | 'down';
export interface ExecutionSummary { export interface ExecutionSummary {
id: string; id: string;
/**
* @deprecated Use status instead
*/
finished?: boolean; finished?: boolean;
mode: WorkflowExecuteMode; mode: WorkflowExecuteMode;
retryOf?: string | null; retryOf?: string | null;
@ -2701,6 +2707,9 @@ export interface ExecutionOptions {
} }
export interface ExecutionFilters { export interface ExecutionFilters {
/**
* @deprecated Use status instead
*/
finished?: boolean; finished?: boolean;
mode?: WorkflowExecuteMode[]; mode?: WorkflowExecuteMode[];
retryOf?: string; retryOf?: string;