fix and update

This commit is contained in:
lendry
2026-06-30 23:43:49 +03:00
parent 4b2ade9354
commit deb213bd77
6 changed files with 60 additions and 29 deletions

View File

@@ -677,7 +677,7 @@ export function buildSystemSettingPayload(setting: Pick<SystemSetting, 'key' | '
}
const GATEWAY_RETRY_STATUS = new Set([502, 503, 504]);
const GATEWAY_RETRY_ATTEMPTS = 4;
const GATEWAY_RETRY_ATTEMPTS = 2;
const GATEWAY_STABLE_PROBE_INTERVAL_MS = 800;
const GATEWAY_STABLE_MAX_ROUNDS = 8;
const API_MAX_CONCURRENT = 6;
@@ -827,7 +827,7 @@ export async function ensureApiGatewayReady(force = false): Promise<void> {
}
function gatewayRetryDelay(attempt: number): number {
return 800 + attempt * 700;
return 600 + attempt * 500;
}
/** Повтор при кратковременном 502/503/504 без сброса всего UI в bootstrap. */