refactor(core): Separate execution startedAt from createdAt (#10810)

This commit is contained in:
Iván Ovejero
2024-09-27 13:32:12 +02:00
committed by GitHub
parent bf7392a878
commit afda049491
26 changed files with 163 additions and 38 deletions

View File

@@ -47,7 +47,14 @@ export class ExecutionEntity {
status: ExecutionStatus;
@Column(datetimeColumnType)
startedAt: Date;
createdAt: Date;
/**
* Time when the processing of the execution actually started. This column
* is `null` when an execution is enqueued but has not started yet.
*/
@Column({ type: datetimeColumnType, nullable: true })
startedAt: Date | null;
@Index()
@Column({ type: datetimeColumnType, nullable: true })