remove debug print

This commit is contained in:
Cyberes 2023-10-15 20:46:32 -06:00
parent 31ab4188f1
commit 381bdb950f
2 changed files with 4 additions and 3 deletions

View File

@ -180,7 +180,6 @@ class PriorityQueue:
queue = RedisPriorityQueue(backend_url)
p.add((backend_url, len(queue)))
count += len(queue)
print(p)
return count
def flush(self):

View File

@ -25,6 +25,8 @@ def console_printer():
processing_count += redis.get(k, default=0, dtype=int)
backends = [k for k, v in cluster_config.all().items() if v['online']]
activity = priority_queue.activity()
print(activity)
# TODO: Active Workers and Processing should read the same. If not, that's an issue
logger.info(f'REQUEST QUEUE -> Active Workers: {len([i for i in activity if i[1]])} | Processing: {processing_count} | Queued: {len(priority_queue)} | Backends Online: {len(backends)}')
time.sleep(1)
time.sleep(10)