It's version 0.8.3 bug fix ТЕПЕРЬ УЖ точно восстановлена система слежения расписания

This commit is contained in:
Niken
2026-05-20 22:35:42 +03:00
parent bbd9c839d5
commit c0edc77a11
8 changed files with 82 additions and 27 deletions
+2 -2
View File
@@ -116,8 +116,8 @@ def register_handlers(dp: Dispatcher, state: BotState, bot: Bot) -> int:
save_message(msg.chat.id, msg.message_id)
except Exception as e:
logger.exception(f"Ошибка при обработке uid={uid}: {e}")
logger.info("Завершён цикл periodic_task, спим 6 часов")
await asyncio.sleep(21600) # каждые 6 часов
logger.info("Завершён цикл periodic_task, спим 24 часов")
await asyncio.sleep(86400) # каждые 24 часов
asyncio.create_task(periodic_task())
return 0