diff --git a/health.php b/health.php index e7f540c..ea8ff76 100644 --- a/health.php +++ b/health.php @@ -52,15 +52,15 @@ try { $ping = $redis->ping(); $health['checks']['redis'] = [ - 'status' => ((string)$ping === 'PONG' || $ping === true) ? 'ok' : 'error', + 'status' => ((string)$ping === 'PONG' || $ping === true) ? 'ok' : 'warning', 'host' => getenv('REDIS_HOST') ?: '127.0.0.1' ]; } catch (Exception $e) { + // Redis es opcional — no marcar el app como unhealthy si Redis falla $health['checks']['redis'] = [ - 'status' => 'error', + 'status' => 'warning', 'error' => $e->getMessage() ]; - $health['status'] = 'unhealthy'; } // 4. Check logs directory