Browse Source

limit max worker

lyc8503 4 years ago
parent
commit
aa63d1ce0d
1 changed files with 1 additions and 1 deletions
  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)