MCPcopy
hub / github.com/grafana/dskit / IsStopped

Method IsStopped

services/manager.go:144–149  ·  view source on GitHub ↗

IsStopped returns true if all services are in terminal state (Terminated or Failed)

()

Source from the content-addressed store, hash-verified

142
143// IsStopped returns true if all services are in terminal state (Terminated or Failed)
144func (m *Manager) IsStopped() bool {
145 m.mu.Lock()
146 defer m.mu.Unlock()
147
148 return m.state == stopped
149}
150
151// AwaitStopped waits for the ServiceManager to become stopped. Returns nil, if manager is stopped, error when context finishes earlier.
152func (m *Manager) AwaitStopped(ctx context.Context) error {

Calls

no outgoing calls