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

Method stopping

pkg/ruler/ruler.go:493–500  ·  view source on GitHub ↗

Stop stops the Ruler. Each function of the ruler is terminated before leaving the ring

(_ error)

Source from the content-addressed store, hash-verified

491// Stop stops the Ruler.
492// Each function of the ruler is terminated before leaving the ring
493func (r *Ruler) stopping(_ error) error {
494 r.manager.Stop()
495
496 if r.subservices != nil {
497 _ = services.StopManagerAndAwaitStopped(context.Background(), r.subservices)
498 }
499 return nil
500}
501
502type sender interface {
503 Send(alerts ...*notifier.Alert)

Callers

nothing calls this directly

Calls 2

StopMethod · 0.65

Tested by

no test coverage detected