JOB_RETENTION_SECS set to 30days by default

This commit is contained in:
Ruben Fiszel
2024-01-31 10:55:28 +01:00
parent f0e0c7bf38
commit 2c4bd63e20
3 changed files with 2 additions and 4 deletions
+1 -2
View File
@@ -365,8 +365,7 @@ you to have it being synced automatically everyday.
| GLOBAL_CACHE_INTERVAL | 10\*60 | (Enterprise Edition only) Interval in seconds in between bucket sync of the cache. This interval \* 2 is the time at which you're guaranteed all the worker's caches are synced together. | Worker |
| WORKER_TAGS | 'deno,go,python3,bash,flow,hub,dependency' | The worker groups assigned to that workers | Worker |
| DEDICATED_WORKER | None | Unique script to run on that worker. Has to be in the form of `<workspace>:<script_path>` | Worker |
| CUSTOM_TAGS | None | The custom tags assignable to scripts. | Server |
| JOB_RETENTION_SECS | 60\*60\*24\*30 //30 days | **Overriden by the instance settings UI** The time in seconds after which jobs get deleted. Cannot be set to more than 30 days if not EE |
| CUSTOM_TAGS | None | The custom tags assignable to scripts. | Server | |
| WAIT_RESULT_FAST_POLL_INTERVAL_MS | 50 | The time in between polling for the run_wait_result endpoints in fast poll mode | Server |
| WAIT_RESULT_SLOW_POLL_INTERVAL_MS | 200 | The time in between polling for the run_wait_result endpoints in fast poll mode | Server |
| WAIT_RESULT_FAST_POLL_DURATION_SECS | 2 | The duration of fast poll mode before switching to slow poll | Server |
+1 -1
View File
@@ -340,7 +340,7 @@ pub async fn reload_retention_period_setting(db: &DB) {
db,
RETENTION_PERIOD_SECS_SETTING,
"JOB_RETENTION_SECS",
60 * 60 * 24 * 60,
60 * 60 * 24 * 30,
JOB_RETENTION_SECS.clone(),
|x| x,
)
@@ -58,7 +58,6 @@ pub const ENV_SETTINGS: [&str; 55] = [
"INSTANCE_EVENTS_WEBHOOK",
"CLOUD_HOSTED",
"GLOBAL_CACHE_INTERVAL",
"JOB_RETENTION_SECS",
"WAIT_RESULT_FAST_POLL_DURATION_SECS",
"WAIT_RESULT_SLOW_POLL_INTERVAL_MS",
"WAIT_RESULT_FAST_POLL_INTERVAL_MS",