This commit is contained in:
Ruben Fiszel
2025-02-24 14:43:23 +01:00
parent 69a2d85f25
commit 08041a2061
4 changed files with 27 additions and 24 deletions
+4 -1
View File
@@ -1119,9 +1119,12 @@ pub async fn run_workers(
async fn send_delayed_killpill(
tx: &tokio::sync::broadcast::Sender<()>,
max_delay_secs: u64,
mut max_delay_secs: u64,
context: &str,
) {
if max_delay_secs == 0 {
max_delay_secs = 1;
}
// Random delay to avoid all servers/workers shutting down simultaneously
let rd_delay = rand::rng().random_range(0..max_delay_secs);
tracing::info!("Scheduling {context} shutdown in {rd_delay}s");
@@ -303,7 +303,7 @@
size="xs">Send usage</Button
>
{/if}
{:else if category == 'Auth/OAuth'}
{:else if category == 'Auth/OAuth/SAML'}
<AuthSettings
bind:oauths
bind:snowflakeAccountIdentifier
+2 -2
View File
@@ -277,7 +277,7 @@
<Button
color="dark"
variant="border"
btnClasses="mt-2 w-full !border-gray-300"
btnClasses="mt-2 w-full"
on:click={() => storeRedirect(login.type)}
>
{login.displayName}
@@ -288,7 +288,7 @@
<Button
color="dark"
variant="border"
btnClasses="mt-2 w-full !border-gray-300"
btnClasses="mt-2 w-full"
on:click={() => {
if (saml) {
window.location.href = saml
+20 -20
View File
@@ -14,22 +14,22 @@ export interface Setting {
value?: any
}[]
fieldType:
| 'text'
| 'number'
| 'boolean'
| 'password'
| 'select'
| 'textarea'
| 'codearea'
| 'seconds'
| 'email'
| 'license_key'
| 'object_store_config'
| 'critical_error_channels'
| 'slack_connect'
| 'smtp_connect'
| 'indexer_rates'
| 'otel'
| 'text'
| 'number'
| 'boolean'
| 'password'
| 'select'
| 'textarea'
| 'codearea'
| 'seconds'
| 'email'
| 'license_key'
| 'object_store_config'
| 'critical_error_channels'
| 'slack_connect'
| 'smtp_connect'
| 'indexer_rates'
| 'otel'
storage: SettingStorage
advancedToggle?: {
label: string
@@ -81,9 +81,9 @@ export const settings: Record<string, Setting[]> = {
isValid: (value: string | undefined) =>
value
? value?.startsWith('http') &&
value.includes('://') &&
!value?.endsWith('/') &&
!value?.endsWith(' ')
value.includes('://') &&
!value?.endsWith('/') &&
!value?.endsWith(' ')
: false
},
{
@@ -224,7 +224,7 @@ export const settings: Record<string, Setting[]> = {
requiresReloadOnChange: true
}
],
'Auth/OAuth': [],
'Auth/OAuth/SAML': [],
Registries: [
{
label: 'Instance Python Version',