GoogleChrome / chromium-dashboard

Chrome Status Dashboard
https://www.chromestatus.com
Apache License 2.0
636 stars 363 forks source link

When error fetching OWNERS, fall back to stale ndb entity. #4171

Closed jrobbins closed 1 month ago

jrobbins commented 1 month ago

We had a site outage due to Gerrit being unresponsive, so this PR makes our dependency on Gerrit more robust.

The existing code had two levels of caching: redis for 1 hour, and a copy of the Gerrit response in ndb that is marked with its creation time and only used for 1 hour. Both are useful even while Gerrit is working because we sometimes clear redis.

In this PR: