Skip to content

Commit 6531e72

Browse files
committed
Use executedAt instead of firstAttemptStartedAt
1 parent 4a72898 commit 6531e72

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/*
2+
Warnings:
3+
4+
- You are about to drop the column `firstAttemptStartedAt` on the `TaskRun` table. All the data in the column will be lost.
5+
6+
*/
7+
8+
-- AlterTable
9+
ALTER TABLE "TaskRun" DROP COLUMN "firstAttemptStartedAt";

internal-packages/database/prisma/schema.prisma

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1741,9 +1741,6 @@ model TaskRun {
17411741
completedAt DateTime?
17421742
machinePreset String?
17431743
1744-
/// Run Engine 2.0+
1745-
firstAttemptStartedAt DateTime?
1746-
17471744
usageDurationMs Int @default(0)
17481745
costInCents Float @default(0)
17491746
baseCostInCents Float @default(0)

internal-packages/run-engine/src/engine/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1204,7 +1204,7 @@ export class RunEngine {
12041204
data: {
12051205
status: "EXECUTING",
12061206
attemptNumber: nextAttemptNumber,
1207-
firstAttemptStartedAt: taskRun.attemptNumber === null ? new Date() : undefined,
1207+
executedAt: taskRun.attemptNumber === null ? new Date() : undefined,
12081208
},
12091209
include: {
12101210
tags: true,

0 commit comments

Comments
 (0)