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

Method Priority

pkg/scheduler/scheduler.go:200–207  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

198}
199
200func (s schedulerRequest) Priority() int64 {
201 priority, ok := stats.FromContext(s.ctx).LoadPriority()
202 if !ok {
203 return 0
204 }
205
206 return priority
207}
208
209func getPlanFromHTTPRequest(req *httpgrpc.HTTPRequest) ([]byte, error) {
210 if req.Body == nil {

Callers

nothing calls this directly

Calls 2

FromContextFunction · 0.92
LoadPriorityMethod · 0.80

Tested by

no test coverage detected