|
|
@@ -37,7 +37,7 @@ public class HealthController {
|
|
|
@GetMapping("/healthcheck")
|
|
|
@NoRequestLog
|
|
|
public ResponseEntity<String> healthcheck() {
|
|
|
- if (!checkDB(videoVectorDataSource, "mysql") || !checkDB(pgVectorDataSource, "pgvector")) {
|
|
|
+ if (!checkDB(pgVectorDataSource, "pgvector")) {
|
|
|
return ResponseEntity.status(HttpStatus.SERVICE_UNAVAILABLE).body("db not ready");
|
|
|
}
|
|
|
if (!checkRedis()) {
|
|
|
@@ -59,7 +59,7 @@ public class HealthController {
|
|
|
|
|
|
private boolean checkRedis() {
|
|
|
try {
|
|
|
- Object result = redisConnectionFactory.getConnection().execute("PING");
|
|
|
+ String result = redisConnectionFactory.getConnection().ping();
|
|
|
return "PONG".equals(result);
|
|
|
} catch (Exception e) {
|
|
|
log.warn("healthcheck: redis not ready — {}", e.getMessage());
|