Skip to content

Commit 83090b0

Browse files
chore: add redis runs expiry (#195)
* chore: add redis runs expiry * fix lint * fix lint
1 parent f852813 commit 83090b0

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed

charts/langsmith/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ maintainers:
55
email: ankush@langchain.dev
66
description: Helm chart to deploy the langsmith application and all services it depends on.
77
type: application
8-
version: 0.8.19
8+
version: 0.8.20
99
appVersion: "0.8.53"

charts/langsmith/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# langsmith
22

3-
![Version: 0.8.19](https://img.shields.io/badge/Version-0.8.19-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.8.53](https://img.shields.io/badge/AppVersion-0.8.53-informational?style=flat-square)
3+
![Version: 0.8.20](https://img.shields.io/badge/Version-0.8.20-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.8.53](https://img.shields.io/badge/AppVersion-0.8.53-informational?style=flat-square)
44

55
Helm chart to deploy the langsmith application and all services it depends on.
66

@@ -209,6 +209,8 @@ For information on how to use this chart, up-to-date release notes, and other gu
209209
| config.oauth.oauthIssuerUrl | string | `""` | |
210210
| config.orgCreationDisabled | bool | `false` | Prevent organization creation. If using basic auth, this is set to true by default. |
211211
| config.personalOrgsDisabled | bool | `false` | Disable personal orgs. Users will need to be invited to an org manually. If using basic auth, this is set to true by default. |
212+
| config.settings | object | `{"redisRunsExpirySeconds":"43200"}` | Application Settings. These are used to tune the application |
213+
| config.settings.redisRunsExpirySeconds | string | `"43200"` | Optional. Be very careful when lowering this value as it can result in runs being lost if your queue is down/not processing items fast enough. |
212214
| config.ttl | object | `{"enabled":true,"ttl_period_seconds":{"longlived":"34560000","shortlived":"1209600"}}` | TTL configuration Optional. Used to set TTLS for longlived and shortlived objects. |
213215
| config.ttl.ttl_period_seconds.longlived | string | `"34560000"` | 400 day longlived and 14 day shortlived |
214216
| config.workspaceScopeOrgInvitesEnabled | bool | `false` | Enable Workspace Admins to invite users to the org and workspace. |

charts/langsmith/templates/_helpers.tpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,8 @@ Template containing common environment variables that are used by several servic
318318
- name: FF_CH_SEARCH_ENABLED
319319
value: {{ ternary "false" .Values.config.blobStorage.chSearchEnabled .Values.clickhouse.external.hybrid | quote }}
320320
{{ include "langsmith.conditionalEnvVarsResolved" . }}
321+
- name: REDIS_RUNS_EXPIRY_SECONDS
322+
value: {{ .Values.config.settings.redisRunsExpirySeconds | quote }}
321323
{{- end }}
322324
323325
{{- define "aceBackend.serviceAccountName" -}}

charts/langsmith/values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ config:
105105
# -- 400 day longlived and 14 day shortlived
106106
longlived: "34560000"
107107
shortlived: "1209600"
108+
#
108109
# -- Blob storage configuration
109110
# Optional. Used to store inputs, outputs, and errors in Blob Storage.
110111
# We currently support S3, GCS, Minio, and Azure as Blob Storage providers.
@@ -135,6 +136,11 @@ config:
135136
# -- Optional. Use this to customize the service URL, which by default is 'https://<storage_account_name>.blob.core.windows.net/'
136137
azureStorageServiceUrlOverride: ""
137138

139+
# -- Application Settings. These are used to tune the application
140+
settings:
141+
# -- Optional. Be very careful when lowering this value as it can result in runs being lost if your queue is down/not processing items fast enough.
142+
redisRunsExpirySeconds: "43200" # 12 hours
143+
138144
aceBackend:
139145
name: "ace-backend"
140146
containerPort: 1987

0 commit comments

Comments
 (0)