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
replaced telegram with an async version #11552
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⚡ Nice one!
🚀 A preview of the docs have been deployed at the following URL: https://11552--rasahq-docs-rasa-v2.netlify.app/docs/rasa |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this looks great, thanks a lot 👍 (I can't approve it since I created the PR but please go ahead and merge it)
@benos thanks for flagging! I'll open a fix PR asap for this on |
Hi @ancalita That sounds great, but do you have any idea when this fix might be made live? I don't see any change on 3.3.1 Thanks! Ben |
@ancalita Awesome! Many thanks |
Hi @ancalita, Sorry to reopen this, but this change has created an additional bug. When triggering an intent like so: http://localhost:5005/conversations/[redacted]/trigger_intent?output_channel=telegram This fails with the following error: {"version":"3.4.1","status":"failure","message":"An unexpected error occurred. Error: asyncio.run() cannot be called from a running event loop","reason":"ConversationError","details":{},"help":null,"code":500} I assume get_output_channel is re-run by the triggering code. Best, Ben |
@ancalita While I'm at it, might this line cause a leak if called repeatedly? channel = TelegramOutput(self.access_token) I've actually noticed a steadily rising CPU consumption which seems linked to calling trigger_intent, but could never really pinpoint the problem. |
@benos I'm so sorry to hear about these new difficulties 🙈 I didn't envisage the potential issues of this change when using the HTTP API. Could you please create a ticket in this Jira board, the new home for OSS issues, with steps for reproducing the error.
A separate ticket for this would be welcome too 🙏🏻 with the reference to the particular line in the codebase if possible. Then you can link these two tickets as related, so they can inform each other. |
Hi @ancalita , I created two tickets: The silver lining could be that this might have revealed the origin of this CPU link that has been plaguing us since we launched. Best, Ben |
Proposed changes: