diff --git a/frontend/src/lib/components/InstanceSettings.svelte b/frontend/src/lib/components/InstanceSettings.svelte
index 4b6b00905d..eb94b0add0 100644
--- a/frontend/src/lib/components/InstanceSettings.svelte
+++ b/frontend/src/lib/components/InstanceSettings.svelte
@@ -456,7 +456,9 @@
{:else if setting.fieldType == 'seconds'}
diff --git a/frontend/src/lib/components/common/seconds/SecondsInput.svelte b/frontend/src/lib/components/common/seconds/SecondsInput.svelte
index 74f988b5bc..c38b118eb5 100644
--- a/frontend/src/lib/components/common/seconds/SecondsInput.svelte
+++ b/frontend/src/lib/components/common/seconds/SecondsInput.svelte
@@ -8,6 +8,8 @@
export let seconds = 0
export let hideDisplay = false
export let disabled = false
+ export let max: number | undefined = undefined
+
let day: TimeUnit = undefined
let hour: TimeUnit = undefined
let min: TimeUnit = undefined
@@ -38,6 +40,9 @@
(min || 0) * ONE_MINUTE_IN_SECONDS +
(sec || 0)
if (seconds < 0) seconds = 0
+ if (max && seconds > max) {
+ seconds = max
+ }
}
diff --git a/frontend/src/lib/components/instanceSettings.ts b/frontend/src/lib/components/instanceSettings.ts
index b3f7bb3f6f..9fa0085a4b 100644
--- a/frontend/src/lib/components/instanceSettings.ts
+++ b/frontend/src/lib/components/instanceSettings.ts
@@ -78,11 +78,11 @@ export const settings: Record = {
{
label: 'Retention Period in secs',
key: 'retention_period_secs',
- description: 'How long to keep the jobs data in the database.',
+ description: 'How long to keep the jobs data in the database (max 30 days on CE)',
fieldType: 'seconds',
placeholder: '30',
storage: 'setting',
- ee_only: 'You can only adjust this setting in the EE version',
+ ee_only: 'You can only adjust this setting to above 30 days in the EE version',
cloudonly: false
},
{