Skip to content

Commit

Permalink
add disconnected status
Browse files Browse the repository at this point in the history
Signed-off-by: WashingtonKK <[email protected]>
  • Loading branch information
WashingtonKK committed Sep 19, 2024
1 parent 4c09b4b commit 33f8415
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions manager/agentEventsLogs.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,9 @@ func (ms *managerService) reportBrokenConnection(cmpID string) {
ms.eventsChan <- &manager.ClientStreamMessage{
Message: &manager.ClientStreamMessage_AgentEvent{
AgentEvent: &manager.AgentEvent{
EventType: "vm running",
EventType: manager.VmRunning.String(),
ComputationId: cmpID,
Status: "disconnected",
Status: manager.Disconnected.String(),
Timestamp: timestamppb.Now(),
Originator: "manager",
},
Expand Down
1 change: 1 addition & 0 deletions pkg/manager/manager_states.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ const (
Starting ManagerStatus = iota
Stopped
Error
Disconnected
)
5 changes: 3 additions & 2 deletions pkg/manager/managerstatus_string.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 33f8415

Please sign in to comment.