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 })
id: string;
/**
* Whether the execution finished sucessfully.
*
* @deprecated Use `status` instead
*/
@Column()
finished: boolean;

View file

@ -135,6 +135,10 @@ export interface IExecutionBase {
startedAt: Date;
stoppedAt?: Date; // empty value means execution is still running
workflowId: string;
/**
* @deprecated Use `status` instead
*/
finished: boolean;
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.

View file

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