-
Notifications
You must be signed in to change notification settings - Fork 0
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
Adding queuing system #89
Conversation
Fixes #83 |
ah no wait, sorry. it did eventually acknowledge and do it. After 2/3 minutes, it acknowledged that there was another thing in the queue and processed it.
|
I just tried this out with OpenAI model and tried to spam it, but it was able to reply to each message. Still some errors in the logs but it doesn't crash seemingly:
|
So I think, the "Cannot write to closing transport" is an error due to the ping interval being too fast. See #83 The code essentially does ping interval * 4 to decide whether the connection is stale and often our models are taking longer than that time to generate so then it things its stale and shuts it down:
I think this can be fixed by:
Still not sure how to fix:
|
This PR:
ping_interval
argument to SocketModeClient to resolve the timeout/stale connection errorBehaviour now if you send two messages in quick succession is:
i.e. Slack:
Rosie: Hi
Rosie: How are you?
Reginald: Hi
Reginald: I'm great thanks for asking!
Chat history:
Rosie: Hi
Regianld: Hi
Rosie: How are you?
Reginald: I'm great thanks for asking!