From 40015f7385fa4baceee353f1ad980bae0ff62138 Mon Sep 17 00:00:00 2001 From: Amir Raminfar Date: Sat, 4 Jan 2025 14:20:16 -0800 Subject: [PATCH] chore: fixes finishedAt correctly when container stops --- internal/docker/container_store.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/docker/container_store.go b/internal/docker/container_store.go index 1f0f11d00196..b9975dd32d21 100644 --- a/internal/docker/container_store.go +++ b/internal/docker/container_store.go @@ -269,6 +269,7 @@ func (s *ContainerStore) init() { if loaded { log.Debug().Str("id", c.ID).Msg("container died") c.State = "exited" + c.FinishedAt = time.Now() return c, false } else { return c, true