Pref: fix thread pool workers (#12882)

### What problem does this PR solve?

Fixed thread pool workers and improve retrieval component

### Type of change

- [x] Refactoring
- [x] Performance Improvement
This commit is contained in:
Yongteng Lei
2026-01-30 09:44:23 +08:00
committed by GitHub
parent efb136c29c
commit 183803e56b
2 changed files with 17 additions and 9 deletions

View File

@ -113,6 +113,7 @@ def pip_install_torch():
subprocess.check_call([sys.executable, "-m", "pip", "install", *pkg_names])
@once
def _thread_pool_executor():
max_workers_env = os.getenv("THREAD_POOL_MAX_WORKERS", "128")
try: