Merge pull request #124215 from tk3fftk/patch-2
fix: add delay to log message when enqueueing a job
This commit is contained in:
		@@ -563,7 +563,7 @@ func (jm *Controller) enqueueSyncJobInternal(logger klog.Logger, obj interface{}
 | 
				
			|||||||
	// all controllers there will still be some replica instability. One way to handle this is
 | 
						// all controllers there will still be some replica instability. One way to handle this is
 | 
				
			||||||
	// by querying the store for all controllers that this rc overlaps, as well as all
 | 
						// by querying the store for all controllers that this rc overlaps, as well as all
 | 
				
			||||||
	// controllers that overlap this rc, and sorting them.
 | 
						// controllers that overlap this rc, and sorting them.
 | 
				
			||||||
	logger.Info("enqueueing job", "key", key)
 | 
						logger.Info("enqueueing job", "key", key, "delay", delay)
 | 
				
			||||||
	jm.queue.AddAfter(key, delay)
 | 
						jm.queue.AddAfter(key, delay)
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user