Skip to content

Commit c8f5646

Browse files
buffer start and end time by 5 seconds to help with viewing all of the logs (#400)
GitOrigin-RevId: 355ed51709f8643a474f1b2bc95abc7615d0be2e
1 parent 1ee87fd commit c8f5646

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

pkg/tui/flows/workflow.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,11 +328,13 @@ func (f *Workflow) runListPalette(ctx context.Context, taskRun *workflows.TaskRu
328328
}
329329
var startTime *command.TimeOrRelative
330330
if taskRun.StartedAt != nil {
331-
startTime = &command.TimeOrRelative{T: taskRun.StartedAt}
331+
t := taskRun.StartedAt.Add(-5 * time.Second)
332+
startTime = &command.TimeOrRelative{T: &t}
332333
}
333334
var endTime *command.TimeOrRelative
334335
if taskRun.CompletedAt != nil {
335-
endTime = &command.TimeOrRelative{T: taskRun.CompletedAt}
336+
t := taskRun.CompletedAt.Add(5 * time.Second)
337+
endTime = &command.TimeOrRelative{T: &t}
336338
}
337339
var tail bool
338340
if taskRun.Status != workflows.Completed && taskRun.Status != workflows.Succeeded && taskRun.Status != workflows.Failed {

0 commit comments

Comments
 (0)