Skip to content
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

Add an LRU cache to !wolfram thread checks #509

Open
TRManderson opened this issue Feb 1, 2020 · 0 comments
Open

Add an LRU cache to !wolfram thread checks #509

TRManderson opened this issue Feb 1, 2020 · 0 comments

Comments

@TRManderson
Copy link
Member

Currently, every time a response is posted in a thread visible to uqcsbot, there's an attempted API call by !wolfram. This should only happen on threads initiated by !wolfram.

For a fix that works now, but also works if we ever get to the point conversations.history actually works, we should cache a list of threads that are not initiated by !wolfram. We should also mark failed API calls as "not a wolfram thread" (possibly with a retry count or filtering on failure type) to minimise API requests we know for sure will fail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant