Add timeout
This commit is contained in:
parent
7f1a2e3d2d
commit
7bc173f6e9
|
@ -12,7 +12,7 @@ class RedisService:
|
|||
"""Отправляет задачу в очередь аудио задач"""
|
||||
await self.client.rpush(self.task_channel, json.dumps(task_data))
|
||||
|
||||
async def wait_for_text(self, user_id: int, chat_id: int, message_id: int, timeout: int = 30):
|
||||
async def wait_for_text(self, user_id: int, chat_id: int, message_id: int, timeout: int = 180):
|
||||
"""Ожидает результат обработки текста с помощью блокирующего ожидания"""
|
||||
start_time = asyncio.get_event_loop().time()
|
||||
|
||||
|
|
Loading…
Reference in New Issue