Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): provider health interval can't drop below 30 seconds #18210

Closedfixfon(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/18210/headopened View on GitHub

Showing 8 changed files with 29 additions and 4 deletions (loading 5).

x
0 of 8 viewed, 8 left
3 additions and 3 deletionsapps/web/src/components/settings/ProviderSettingsPanel.tsxModified
View file
@@ -102,7 +102,7 @@
backgroundActivityOverrideSettings,
buildProviderInstanceUpdatePatch,
durationToSeconds,
- normalizeIntervalSeconds,
+ normalizeProviderHealthIntervalSeconds,
PROVIDER_HEALTH_INTERVAL_STEP_SECONDS,
} from "./SettingsPanels.logic";
import {
@@ -1244,14 +1244,14 @@
step={PROVIDER_HEALTH_INTERVAL_STEP_SECONDS}
size="sm"
className="w-32"
- onValueChange={(value) =>
+ onValueCommitted={(value) =>
updateSettings(
backgroundActivityOverrideSettings(
settings.backgroundActivity,
resolvedBackgroundActivity,
providerHealthRefreshInterval: Duration.seconds(
- normalizeIntervalSeconds(value),
+ normalizeProviderHealthIntervalSeconds(value),
11 additions and 0 deletionsapps/web/src/components/settings/SettingsPanels.logic.test.tsModified
View file