All-Hands-AI / OpenHands

🙌 OpenHands: Code Less, Make More
https://all-hands.dev
MIT License
33.44k stars 3.83k forks source link

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

Open rbren opened 2 hours ago

rbren commented 2 hours ago

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.

github-actions[bot] commented 2 hours ago

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

github-actions[bot] commented 2 hours ago

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