jack 1 week ago
parent
commit
e6e1abc04e
2 changed files with 2 additions and 2 deletions
  1. 1 1
      app/libs/thread_executor.py
  2. 1 1
      docker-compose.yml

+ 1 - 1
app/libs/thread_executor.py

@@ -63,7 +63,7 @@ def run_with_executor(executor: Executor, func, tasks: List, timeout: int):
             results.append(result)
         except Exception as e:
             print(e)
-
+    executor.shutdown()
     return results
 
     """

+ 1 - 1
docker-compose.yml

@@ -131,7 +131,7 @@ services:
       LLM_MAX_STEP: 2
 
       # tool
-      TOOL_WORKER_NUM: 20
+      TOOL_WORKER_NUM: 200
       TOOL_WORKER_EXECUTION_TIMEOUT: 180
 
       # web search tool