chore: 更新健康检查注释,反映简化后的逻辑(只依赖providerTypes,不使用per-provider checkHealth flag)

This commit is contained in:
Wenaixi 2026-03-31 01:42:00 +08:00
parent 157bb489b5
commit b2bb744916
2 changed files with 3 additions and 3 deletions

View file

@ -1755,7 +1755,7 @@ export class ProviderPoolManager {
/**
* Performs scheduled health checks on all providers.
* This method is designed to be called periodically to proactively check provider health.
* It respects provider-level isDisabled and checkHealth flags.
* It respects provider-level isDisabled flag.
*/
async performScheduledHealthChecks() {
const scheduledConfig = this.globalConfig?.SCHEDULED_HEALTH_CHECK;
@ -1817,7 +1817,7 @@ export class ProviderPoolManager {
const displayName = customName || uuid.substring(0, 8);
try {
// Perform health check (forceCheck=true to bypass per-instance checkHealth flag)
// Perform health check (health check is based on providerTypes configuration, not per-provider checkHealth flag)
const result = await this._checkProviderHealth(providerType, provider.config);
const checkDuration = Date.now() - checkStartTime;

View file

@ -698,7 +698,7 @@ export async function handleHealthCheck(req, res, currentConfig, providerPoolMan
logger.info(`[UI API] Starting health check for ${unhealthyProviders.length} unhealthy providers in ${providerType} (total: ${providers.length})`);
// 执行健康检测(强制检查,忽略 checkHealth 配置
// 执行健康检测(检查所有未禁用的 unhealthy providers
const results = [];
for (const providerStatus of unhealthyProviders) {
const providerConfig = providerStatus.config;