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

Cache google sheet contents, so they're retrieved no more than once per minute #4700

Open
rbren opened this issue Nov 2, 2024 · 2 comments · May be fixed by #4703
Open

Cache google sheet contents, so they're retrieved no more than once per minute #4700

rbren opened this issue Nov 2, 2024 · 2 comments · May be fixed by #4703
Labels
enhancement New feature or request fix-me Attempt to fix this issue with OpenHands.

Comments

@rbren
Copy link
Collaborator

rbren commented Nov 2, 2024

We are accessing a google sheet on every request to /authenticate, which can be a lot. This can get rate limited

In openhands/server/github.py, modify the logic so that the sheet's contents are cached in memory, and only updated if they're > 60s old.

@rbren rbren added enhancement New feature or request fix-me Attempt to fix this issue with OpenHands. labels Nov 2, 2024
Copy link
Contributor

github-actions bot commented Nov 2, 2024

OpenHands started fixing the issue! You can monitor the progress here.

Copy link
Contributor

github-actions bot commented Nov 2, 2024

A potential fix has been generated and a draft PR #4703 has been created. Please review the changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request fix-me Attempt to fix this issue with OpenHands.
Projects
None yet
1 participant