Skip to content

Commit c36818b

Browse files
committed
fix: use scheduled at instead of current time for empty jobrun data
Signed-off-by: Kush <thekushsharma@gmail.com>
1 parent dcad5af commit c36818b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

store/postgres/adapter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ func (adapt JobSpecAdapter) ToJobRun(jr JobRun) (models.JobRun, models.Namespace
494494
// to make it backward compatible, generate execution time
495495
// although this time may not match exactly what it should be
496496
// but will avoid failing
497-
adaptedData.ExecutedAt = time.Now().UTC()
497+
adaptedData.ExecutedAt = jr.ScheduledAt
498498
}
499499

500500
var instanceSpecs []models.InstanceSpec

0 commit comments

Comments
 (0)