baha-99 commited on
Commit
ef2a29c
·
1 Parent(s): c7e129a

fix: PoolSet:5

Browse files
Files changed (1) hide show
  1. bot_telegram.py +2 -2
bot_telegram.py CHANGED
@@ -46,8 +46,8 @@ class TelegramBot:
46
  self.excel_url = f"{self.base_url}/api/v1/questions/excel"
47
 
48
  # Executors (keep only one instance of each)
49
- self.text_executor = ThreadPoolExecutor(max_workers=25, thread_name_prefix="text_worker")
50
- self.excel_executor = ThreadPoolExecutor(max_workers=20, thread_name_prefix="excel_worker")
51
  self.excel_semaphore = asyncio.Semaphore(10)
52
 
53
  # Track active processes
 
46
  self.excel_url = f"{self.base_url}/api/v1/questions/excel"
47
 
48
  # Executors (keep only one instance of each)
49
+ self.text_executor = ThreadPoolExecutor(max_workers=5, thread_name_prefix="text_worker")
50
+ self.excel_executor = ThreadPoolExecutor(max_workers=5, thread_name_prefix="excel_worker")
51
  self.excel_semaphore = asyncio.Semaphore(10)
52
 
53
  # Track active processes