IsHealthy returns true if all services are currently in the Running state.
()
| 97 | |
| 98 | // IsHealthy returns true if all services are currently in the Running state. |
| 99 | func (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). |
no outgoing calls