Skip to content
This repository has been archived by the owner on Sep 22, 2021. It is now read-only.

Use async_task decorator from Dispatcher for handler with long timeouts #7

Closed
Roald87 opened this issue Jul 19, 2019 · 2 comments
Closed
Labels
bug Something isn't working

Comments

@Roald87
Copy link
Owner

Roald87 commented Jul 19, 2019

/root/venvs/gracedb/lib/python3.7/site-packages/aiogram/dispatcher/webhook.py:206: TimeoutWarning: Detected slow response into webhook. (Greater than 55 seconds)
Recommended to use 'async_task' decorator from Dispatcher for handler with long timeouts.
  TimeoutWarning)
@Roald87 Roald87 added the bug Something isn't working label Jul 19, 2019
@Roald87
Copy link
Owner Author

Roald87 commented Jul 20, 2019

Due to this bug no alert was send out for event S190720a.

That was probably due to some users which blocked the bot and that exception was not handled back then.

@Roald87
Copy link
Owner Author

Roald87 commented Aug 1, 2019

Adding @dp.async_task before async def send_preliminary(message: types.Message) in main.py doesn't work. I.e. the warning still shows up. Maybe because update_all_events is not asynchronous?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant