MCPcopy Create free account
hub / github.com/cortexproject/cortex / IsHealthy

Method IsHealthy

pkg/util/services/manager.go:99–104  ·  view source on GitHub ↗

IsHealthy returns true if all services are currently in the Running state.

()

Source from the content-addressed store, hash-verified

97
98// IsHealthy returns true if all services are currently in the Running state.
99func (m *Manager) IsHealthy() bool {
100 m.mu.Lock()
101 defer m.mu.Unlock()
102
103 return m.state == healthy
104}
105
106// AwaitHealthy waits for the ServiceManager to become healthy. Returns nil, if manager is healthy, error otherwise (eg. manager
107// is in a state in which it cannot get healthy anymore).

Callers 1

Calls

no outgoing calls

Tested by 1