Explorar el Código

limit max worker

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

+ 1 - 1
backend_refactor/pool/thread_pool.py

@@ -1,3 +1,3 @@
 from concurrent.futures import ThreadPoolExecutor
 
-pool = ThreadPoolExecutor()
+pool = ThreadPoolExecutor(max_workers=3)