New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Applicaiton hangs after AsyncCancelled #4172
Comments
Hi, thanks for reaching out. The topic sounds very similar to #4155 and #4156 and I think that the first draft in #4157 could already address the issue. |
Hi, Regarding the cause of the issue, I think it happens due to network issue which causes timeout in http request and later leads to |
I'm running into the same issue on an AWS EC2 which I'd assume to have a quite stable network. At least I didn't have any issues with other apps in recent years regarding network. I see |
Steps to Reproduce
I am running a Telegram bot via asyncio and and the bot runs perfectly fine for 1 day or twos, then suddenly gets
asyncio.AsyncCancelled
exception and the application hangs.Here is the code that I has been using.
Expected behaviour
After getting
asyncio.AsyncCancelled
, the application should still run normally.Actual behaviour
After getting this warning, it blocks all other asyncio tasks.
Operating System
Centos 7
Version of Python, python-telegram-bot & dependencies
Relevant log output
Additional Context
Additionally, I think the problem lines in __process_update_wrapper not being able to catch with any exception, when
asyncio.AsyncCancelled
, job queue could not be markeddone
which block the entire asyncio.The text was updated successfully, but these errors were encountered: