From 0999e37d398416a19c2262dfca3c8b7f2da97971 Mon Sep 17 00:00:00 2001 From: Rex P <106129829+another-rex@users.noreply.github.com> Date: Tue, 4 Jun 2024 10:13:29 +1000 Subject: [PATCH] Update gcp/appengine/frontend_handlers.py Co-authored-by: Andrew Pollock --- gcp/appengine/frontend_handlers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcp/appengine/frontend_handlers.py b/gcp/appengine/frontend_handlers.py index d9c18766c3b..b9272d1cef0 100644 --- a/gcp/appengine/frontend_handlers.py +++ b/gcp/appengine/frontend_handlers.py @@ -352,7 +352,7 @@ def osv_get_ecosystem_counts_cached(): # We can sometimes not be in ndb context because caching # runs in a separate thread if ndb.get_context(raise_context_error=False) is None: - # Make sure this ndb.Client is the same as the one defined in main.py + # IMPORTANT: Ensure this ndb.Client remains consistent with the one defined in main.py with ndb.Client().context(): return osv_get_ecosystem_counts()