[CI] workerqueue attempt to fix flacky test

This commit is contained in:
oliverpool 2024-03-22 08:21:15 +01:00
parent 0aa77d0b9e
commit 5c248adcf1
3 changed files with 28 additions and 12 deletions

View file

@ -146,8 +146,6 @@ func (q *WorkerPoolQueue[T]) doStartNewWorker(wp *workerGroup[T]) {
log.Debug("Queue %q starts new worker", q.GetName())
defer log.Debug("Queue %q stops idle worker", q.GetName())
atomic.AddInt32(&q.workerStartedCounter, 1) // Only increase counter, used for debugging
t := time.NewTicker(workerIdleDuration)
defer t.Stop()