From 4f502a286c87b8ab03d3a065ab827ef1d543354c Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Thu, 9 Apr 2020 14:07:45 -0700 Subject: [PATCH] store: Set JobStarted time when PopJob is called If you don't set the time it ends up being the default Go time which is 1/1/1 and when you convert that using UnixNano() you get a nice big negative number (-6795364578871345152) which then eventually shows up in the queue, finished, and failed output as 'Fri Aug 30 17:47:39 1754' and since the Time Travel feature is not yet complete this is impossible. The fix is to set it when the job is started. --- internal/store/store.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/store/store.go b/internal/store/store.go index 66915ee2f..3dc43aca2 100644 --- a/internal/store/store.go +++ b/internal/store/store.go @@ -607,6 +607,7 @@ func (s *Store) PopJob() Job { } // Change queue status to running for the image build as well as for the targets compose.ImageBuilds[job.ImageBuildID].QueueStatus = common.IBRunning + compose.ImageBuilds[job.ImageBuildID].JobStarted = time.Now() for m := range compose.ImageBuilds[job.ImageBuildID].Targets { compose.ImageBuilds[job.ImageBuildID].Targets[m].Status = common.IBRunning }