File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -248,7 +248,7 @@ function buildTimelineItems(run: TimelineSpanRun): TimelineItem[] {
248
248
items . push ( {
249
249
type : "line" ,
250
250
id : "executing" ,
251
- title : formatDuration ( run . executedAt , run . updatedAt ) ,
251
+ title : formatDuration ( run . executedAt , run . completedAt ?? run . updatedAt ) ,
252
252
state,
253
253
shouldRender : true ,
254
254
variant : "normal" ,
@@ -271,7 +271,7 @@ function buildTimelineItems(run: TimelineSpanRun): TimelineItem[] {
271
271
items . push ( {
272
272
type : "line" ,
273
273
id : "legacy-executing" ,
274
- title : formatDuration ( run . startedAt , run . updatedAt ) ,
274
+ title : formatDuration ( run . startedAt , run . completedAt ?? run . updatedAt ) ,
275
275
state,
276
276
shouldRender : true ,
277
277
variant : "normal" ,
@@ -296,7 +296,7 @@ function buildTimelineItems(run: TimelineSpanRun): TimelineItem[] {
296
296
type : "event" ,
297
297
id : "finished" ,
298
298
title : "Finished" ,
299
- date : run . updatedAt ,
299
+ date : run . completedAt ?? run . updatedAt ,
300
300
previousDate : run . executedAt ?? run . startedAt ?? undefined ,
301
301
state,
302
302
shouldRender : true ,
Original file line number Diff line number Diff line change @@ -209,6 +209,7 @@ export class RunListPresenter extends BasePresenter {
209
209
lockedAt : Date | null ;
210
210
delayUntil : Date | null ;
211
211
updatedAt : Date ;
212
+ completedAt : Date | null ;
212
213
isTest : boolean ;
213
214
spanId : string ;
214
215
idempotencyKey : string | null ;
@@ -238,6 +239,7 @@ export class RunListPresenter extends BasePresenter {
238
239
tr."delayUntil" AS "delayUntil",
239
240
tr."lockedAt" AS "lockedAt",
240
241
tr."updatedAt" AS "updatedAt",
242
+ tr."completedAt" AS "completedAt",
241
243
tr."isTest" AS "isTest",
242
244
tr."spanId" AS "spanId",
243
245
tr."idempotencyKey" AS "idempotencyKey",
@@ -383,7 +385,9 @@ WHERE
383
385
startedAt : startedAt ? startedAt . toISOString ( ) : undefined ,
384
386
delayUntil : run . delayUntil ? run . delayUntil . toISOString ( ) : undefined ,
385
387
hasFinished,
386
- finishedAt : hasFinished ? run . updatedAt . toISOString ( ) : undefined ,
388
+ finishedAt : hasFinished
389
+ ? run . completedAt ?. toISOString ( ) ?? run . updatedAt . toISOString ( )
390
+ : undefined ,
387
391
isTest : run . isTest ,
388
392
status : run . status ,
389
393
version : run . version ,
You can’t perform that action at this time.
0 commit comments