lyc8503 hace 3 años
padre
commit
b7139fa5a6
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      backend_refactor/pool/thread_pool.py

+ 1 - 0
backend_refactor/pool/thread_pool.py

@@ -22,6 +22,7 @@ def worker():
 
 def init_workers(count=2):
     logging.info("Initializing workers...")
+    global q
     q = queue.Queue()
     for _ in range(count):
         threading.Thread(target=worker).start()