Przeglądaj źródła

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

dujian 3 tygodni temu
rodzic
commit
79c202b68f
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      alien_gateway/main.py

+ 2 - 1
alien_gateway/main.py

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