Update endpoint health check and datetime handling

Added 302 status code as healthy for Sayobot endpoint in BeatmapDownloadService. Improved datetime parsing to use UTC-aware datetimes in EnhancedIntervalStatsManager and removed redundant comments for Redis history trimming.
This commit is contained in:
咕谷酱
2025-08-22 20:44:58 +08:00
parent 4566ecbab5
commit 1f40c6f70d
2 changed files with 5 additions and 6 deletions

View File

@@ -141,8 +141,8 @@ class BeatmapDownloadService:
# 根据不同端点类型判断健康状态
is_healthy = False
if endpoint.name == "Sayobot":
# Sayobot 端点返回 304 (Not Modified) 表示正常
is_healthy = response.status_code in [200, 304]
# Sayobot 端点返回 200, 302 (Redirect), 304 (Not Modified) 表示正常
is_healthy = response.status_code in [200, 302, 304]
else:
# 其他端点返回 200 表示正常
is_healthy = response.status_code == 200