We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d418b62 commit 3c0f4b3Copy full SHA for 3c0f4b3
src/main/main.py
@@ -462,12 +462,14 @@ async def v1_gateway(request: Request, path: str):
462
return JSONResponse(content=response, status_code=200, headers={"Content-Type": "application/json"})
463
464
app_logger.info(msg="All cached responses not found- Must Be a Slow Day")
465
- for api_url in remote_servers.healthy_server_urls:
+ for api_url in api_urls:
466
try:
467
# 5 minutes timeout on resource fetching from backend - some resources may take very long
468
response = await requester(api_url=api_url, timeout=9600)
469
+
470
if response and response.get("status", False) and response.get('payload'):
471
# NOTE, Cache is being set to a ttl of one hour here
472
473
await redis_cache.set(key=api_url, value=response, ttl=60 * 60)
474
475
except httpx.HTTPError as http_err:
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments