File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
backend/src/aggregation/layer1 Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 5
5
import requests
6
6
7
7
from src .aggregation .layer0 .package import get_user_data
8
- from src .constants import API_VERSION , BACKEND_URL , PROD
8
+ from src .constants import API_VERSION # , BACKEND_URL, PROD
9
9
from src .data .github .graphql import GraphQLErrorRateLimit
10
10
from src .data .mongo .secret import update_keys
11
11
from src .data .mongo .user_months import UserMonth , get_user_months , set_user_month
@@ -114,9 +114,10 @@ async def query_user(
114
114
out .incomplete = incomplete
115
115
116
116
if incomplete or len (new_months ) > 1 :
117
- # cache buster for publisher
118
- if PROD :
119
- s .get (f"{ BACKEND_URL } /user/{ user_id } ?no_cache=True" )
117
+ # TODO: figure out why this causes an infinite loop
118
+ # # cache buster for publisher
119
+ # if PROD:
120
+ # s.get(f"{BACKEND_URL}/user/{user_id}?no_cache=True")
120
121
121
122
return (False , out )
122
123
You can’t perform that action at this time.
0 commit comments