MCPcopy
hub / github.com/cortexlabs/cortex / updateQueueParams

Method updateQueueParams

pkg/activator/api_activator.go:75–78  ·  view source on GitHub ↗

updateQueueParams updates the breaker queue parameters (not thread safe)

(maxQueueLength, maxConcurrency int)

Source from the content-addressed store, hash-verified

73
74// updateQueueParams updates the breaker queue parameters (not thread safe)
75func (a *apiActivator) updateQueueParams(maxQueueLength, maxConcurrency int) {
76 a.breaker.UpdateConcurrency(maxConcurrency)
77 a.breaker.UpdateQueueLength(maxQueueLength)
78}
79
80// inFlight returns the amount of in-flight requests of the breaker
81func (a *apiActivator) inFlight() int64 {

Callers 1

updateAPIMethod · 0.80

Calls 2

UpdateConcurrencyMethod · 0.80
UpdateQueueLengthMethod · 0.80

Tested by

no test coverage detected