Procházet zdrojové kódy

e签宝 暂时关闭Redis健康检查。

dujian před 3 týdny
rodič
revize
79c202b68f
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      alien_gateway/main.py

+ 2 - 1
alien_gateway/main.py

@@ -60,7 +60,8 @@ async def health():
 @app.get("/health/redis")
 async def redis_health():
     try:
-        return check_redis_connection()
+        return {"ok": False, "skipped": True, "reason": "redis check disabled"}
+        # return check_redis_connection()
     except Exception as exc:
         logger.error("redis health check failed err=%s", exc)
         raise HTTPException(status_code=HTTP_502_BAD_GATEWAY, detail="Redis unavailable")