fix: [CDE-478]: Setting the first value of gits_last_heartbeat field equal to gits_active_time_started when a gitspace is confirmed to be running by the container orchestrator. (#2978)

* fix: [CDE-478]: Setting the first value of gits_last_heartbeat field equal to gits_active_time_started when a gitspace is confirmed to be running by the container orchestrator.
pull/3586/head
Dhruv Dhruv 2024-11-12 08:01:59 +00:00 committed by Harness
parent 1781c3be70
commit 6200fa9844
1 changed files with 1 additions and 0 deletions

View File

@ -157,6 +157,7 @@ func (o orchestrator) ResumeStartGitspace(
now := time.Now().UnixMilli()
gitspaceInstance.LastUsed = &now
gitspaceInstance.ActiveTimeStarted = &now
gitspaceInstance.LastHeartbeat = &now
gitspaceInstance.State = enum.GitspaceInstanceStateRunning
o.emitGitspaceEvent(ctx, gitspaceConfig, enum.GitspaceEventTypeGitspaceActionStartCompleted)