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

Method forgetDisconnectedQueriers

pkg/scheduler/queue/queue.go:190–201  ·  view source on GitHub ↗
(_ context.Context)

Source from the content-addressed store, hash-verified

188}
189
190func (q *RequestQueue) forgetDisconnectedQueriers(_ context.Context) error {
191 q.mtx.Lock()
192 defer q.mtx.Unlock()
193
194 if q.queues.forgetDisconnectedQueriers(time.Now()) > 0 {
195 // We need to notify goroutines cause having removed some queriers
196 // may have caused a resharding.
197 q.cond.Broadcast()
198 }
199
200 return nil
201}
202
203func (q *RequestQueue) stopping(_ error) error {
204 q.mtx.Lock()

Callers

nothing calls this directly

Calls 1

BroadcastMethod · 0.45

Tested by

no test coverage detected