TheXeos commited on
Commit
0a48cbd
1 Parent(s): 5094767

Why queue small

Browse files
Files changed (1) hide show
  1. background_task.py +1 -0
background_task.py CHANGED
@@ -66,6 +66,7 @@ class Matchmaking:
66
  self.queue = self.models.copy()
67
  random.shuffle(self.queue)
68
  while len(self.queue) > 1:
 
69
  model1 = self.queue.pop(0)
70
  model2 = self.queue.pop(self.find_n_closest_indexes(model1, 10))
71
  match(model1, model2)
 
66
  self.queue = self.models.copy()
67
  random.shuffle(self.queue)
68
  while len(self.queue) > 1:
69
+ print(f"Queue length: {len(self.queue)}")
70
  model1 = self.queue.pop(0)
71
  model2 = self.queue.pop(self.find_n_closest_indexes(model1, 10))
72
  match(model1, model2)