Spaces:
Paused
Paused
fix: PoolSet:5
Browse files- 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=
|
| 50 |
-
self.excel_executor = ThreadPoolExecutor(max_workers=
|
| 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
|