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