mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 12:18:16 +00:00 
			
		
		
		
	Merge pull request #106934 from spencer-p/spencer-master
Document when workqueue metrics are dropped
This commit is contained in:
		@@ -33,7 +33,9 @@ type DelayingInterface interface {
 | 
			
		||||
	AddAfter(item interface{}, duration time.Duration)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// NewDelayingQueue constructs a new workqueue with delayed queuing ability
 | 
			
		||||
// NewDelayingQueue constructs a new workqueue with delayed queuing ability.
 | 
			
		||||
// NewDelayingQueue does not emit metrics. For use with a MetricsProvider, please use
 | 
			
		||||
// NewNamedDelayingQueue instead.
 | 
			
		||||
func NewDelayingQueue() DelayingInterface {
 | 
			
		||||
	return NewDelayingQueueWithCustomClock(clock.RealClock{}, "")
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -34,6 +34,8 @@ type RateLimitingInterface interface {
 | 
			
		||||
 | 
			
		||||
// NewRateLimitingQueue constructs a new workqueue with rateLimited queuing ability
 | 
			
		||||
// Remember to call Forget!  If you don't, you may end up tracking failures forever.
 | 
			
		||||
// NewRateLimitingQueue does not emit metrics. For use with a MetricsProvider, please use
 | 
			
		||||
// NewNamedRateLimitingQueue instead.
 | 
			
		||||
func NewRateLimitingQueue(rateLimiter RateLimiter) RateLimitingInterface {
 | 
			
		||||
	return &rateLimitingType{
 | 
			
		||||
		DelayingInterface: NewDelayingQueue(),
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user