Skip to content

Commit

Permalink
chore: fixes finishedAt correctly when container stops
Browse files Browse the repository at this point in the history
  • Loading branch information
amir20 committed Jan 4, 2025
1 parent 46fb09e commit 40015f7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/docker/container_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 40015f7

Please sign in to comment.